Update comment for pins

This commit is contained in:
Tomislav Kopić 2024-10-28 18:43:01 +01:00
parent 29e337bfa0
commit 064ce7565c

View File

@ -43,7 +43,7 @@ U8G2_SSD1306_128X64_NONAME_2_HW_I2C display(U8G2_MIRROR);
#define PIN_BTN_L 12 // D6 #define PIN_BTN_L 12 // D6
#define PIN_BTN_M 13 // D7 #define PIN_BTN_M 13 // D7
#define PIN_BTN_R 15 // D8 #define PIN_BTN_R 15 // D8
#define PIN_BUZZER 0 // D5 #define PIN_BUZZER 0 // D3
/**** TamaLib Specific Variables ****/ /**** TamaLib Specific Variables ****/
static uint16_t current_freq = 0; static uint16_t current_freq = 0;
@ -158,26 +158,6 @@ static int hal_handler(void) {
} else { } else {
hw_set_button(BTN_RIGHT, BTN_STATE_RELEASED ); hw_set_button(BTN_RIGHT, BTN_STATE_RELEASED );
} }
#ifdef ENABLE_SAVE_STATUS
if (digitalRead(PIN_BTN_L) == HIGH && digitalRead(PIN_BTN_M) == HIGH && digitalRead(PIN_BTN_R) == HIGH) {
if (button4state==0) {
saveStateToEEPROM(&cpuState);
noTone(PIN_BUZZER);
tone(PIN_BUZZER, 700, 100);
delay(120);
noTone(PIN_BUZZER);
tone(PIN_BUZZER, 880, 100);
delay(120);
noTone(PIN_BUZZER);
tone(PIN_BUZZER, 1175, 100);
delay(120);
noTone(PIN_BUZZER);
}
button4state = 1;
} else {
button4state = 0;
}
#endif
#endif #endif
return 0; return 0;
} }