urbanspaceman
Well-known member
Hello! It's time to ask for advice
i have a project that include: teensy3.6, 5 encoders with MCP23017, audio board and other stuff..
Now, i have tested the single parts: audio ok, encoders ok
but if i put all the parts together, i can ear the audio but the encoders stop working.
I need an advice to put the pieces together, with the encoders I want to control the audio parameters while the audio keeps playing.
the encoders are read with this library and the pollAll function inside the loop() function
https://github.com/maxgerhardt/rotary-encoder-over-mcp23017
this is the complete loop()
i have a project that include: teensy3.6, 5 encoders with MCP23017, audio board and other stuff..
Now, i have tested the single parts: audio ok, encoders ok
but if i put all the parts together, i can ear the audio but the encoders stop working.
I need an advice to put the pieces together, with the encoders I want to control the audio parameters while the audio keeps playing.
the encoders are read with this library and the pollAll function inside the loop() function
https://github.com/maxgerhardt/rotary-encoder-over-mcp23017
this is the complete loop()
Code:
void loop() {
pollAll();
float w;
for (uint32_t i =1; i<20; i++) {
w = i / 20.0;
waveform1.pulseWidth(w);
envelope1.noteOn();
delay(800);
envelope1.noteOff();
delay(600);
}
}