Support for CV box/CV board (compile option). Match idle CV from PWM breath CV on A6 to direct output idle voltage from breath sensor (so any of them can be used for CV box without need for recalibration of box). Added reading and ignoring incoming USB MIDI messages to prevent buffers from getting filled up blocking outgoing messages.

This commit is contained in:
Johan Berglund 2019-05-25 11:05:17 +02:00
parent f06eb0b9a4
commit f0010cb08c
7 changed files with 11177 additions and 5469 deletions

View file

@ -146,6 +146,10 @@ void showVersion() {
display.setCursor(0,0);
display.print("BC");
#endif
#if defined(CVSCALEBOARD)
display.setCursor(15,0);
display.print("CV");
#endif
display.setCursor(85,52);
display.print("v.");
display.println(FIRMWARE_VERSION);
@ -3634,6 +3638,10 @@ void drawSensorPixels(){
display.display();
}
lastBite=biteSensor;
/*if (biteJumper){
pos = map(constrain(analogRead(bitePin),900,1400), 900, 1400, 28, 118);
display.drawPixel(pos, 40, WHITE);
}*/
}
if ((state == PITCHB_ADJ_IDL) || (state == PITCHB_ADJ_THR) || (state == PITCHB_ADJ_MAX)){
pos = map(constrain(pbUp, pitchbLoLimit, pitchbHiLimit), pitchbLoLimit, pitchbHiLimit, 28, 118);