I've been using the fluxamasynth arduino shield for a project, and it has worked great. I decided to try the ESP platform for the smaller package and additional features. Currently I have confirmed the chip is working by uploading a blink code on one of the pins.
After that, I tried copying over my arduino code. It compiles fine, but gets stuck during runtime when the synth. command is called.
For example, this is my main loop
Code: Select all
void loop() {
digitalWrite(debug, HIGH);
delay(1000);
digitalWrite(debug, LOW);
delay(1000);
}
Code: Select all
#include <Fluxamasynth.h>
#include <PgmChange.h>
#include"pitches.h"
//Fluxamasynth synth; // create a synth object
Fluxamasynth synth = Fluxamasynth();
byte instrument = 0;
int volume = 0;
int debug = 32;
void setup() {
pinMode(debug, OUTPUT);
*/
synth.setMasterVolume(volume);
synth.programChange(0, 0, instrument);
*/
}
Thanks for any help