From 064ce7565cd1878c988fb96bcfc7fc10ef92c27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Mon, 28 Oct 2024 18:43:01 +0100 Subject: [PATCH] Update comment for pins --- CubeGotchi.ino | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/CubeGotchi.ino b/CubeGotchi.ino index 505aede..83d17a2 100644 --- a/CubeGotchi.ino +++ b/CubeGotchi.ino @@ -43,7 +43,7 @@ U8G2_SSD1306_128X64_NONAME_2_HW_I2C display(U8G2_MIRROR); #define PIN_BTN_L 12 // D6 #define PIN_BTN_M 13 // D7 #define PIN_BTN_R 15 // D8 -#define PIN_BUZZER 0 // D5 +#define PIN_BUZZER 0 // D3 /**** TamaLib Specific Variables ****/ static uint16_t current_freq = 0; @@ -158,26 +158,6 @@ static int hal_handler(void) { } else { 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 return 0; }