Rev 6 #1

Merged
oleksiy merged 37 commits from hardware-rev-4 into main 2024-08-25 12:37:13 +00:00
105 changed files with 39494 additions and 7938 deletions
Showing only changes of commit 4937de026c - Show all commits

View File

@ -6,7 +6,7 @@
#include <avr/wdt.h>
#include <NeoHWSerial.h>
const char version[5] = "1.1b4";
const char version[5] = "V:1.1";
#define SCREEN_ADDRESS 0x3C
@ -238,10 +238,9 @@ void sendMIDIStop() {
NeoSerial.write(0xFC);
}
void receiveMIDI() {
void receiveMIDI( uint8_t msg, uint8_t status ) {
if (masterClockMode == 2) {
//if(Serial.available() > 0) {
int msg = NeoSerial.read();
//int msg = NeoSerial.read();
if (msg == 0xF8) { //Clock
MIDIClockReceived = true;
} else if (msg == 0xFC) { //stop
@ -249,7 +248,6 @@ void receiveMIDI() {
} else if (msg == 0xFA || msg == 0xFB) { //start and continue
isPlaying = true;
}
//}
}
}

View File

@ -178,7 +178,7 @@ void checkInputs() {
&& (shiftBtnPushed || menuItemSelected)
&& displayTab == 0
&& menuItem == 1) { //Master Clock Mode
if (masterClockMode == 1 && change == -1) { //Stop when switching from ext to int
if (masterClockMode == 1) { // && change == -1) { //Stop when switching from ext to int or to midi
isPlaying = false;
}