diff --git a/Audio_10_BT/Audio_10_BT.ino b/Audio_10_BT/Audio_10_BT.ino index 8975f906071a2553437977777053b6e0afb91354..603b4fc63bfd73a8979caccf0f2db4fc40e3f72f 100644 --- a/Audio_10_BT/Audio_10_BT.ino +++ b/Audio_10_BT/Audio_10_BT.ino @@ -23,14 +23,15 @@ //#include "measurements.h" #include "cc_emu.h" #include "bt.h" -#define PIN_CCPSE 22 -#define PIN_CCMOD 21 -#define PIN_CCLDG 19 -#define PIN_CCINS 18 +#define PIN_CCINS 2 #define PIN_CCEJT 4 -#define PIN_LED 2 -#define PIN_PBREF 1 -#define PIN_OPTO 5 +#define PIN_CCLDG 5 +#define PIN_OPTO 21 +#define PIN_CCMOD 18 +#define PIN_CCPSE 22 +#define PIN_LED 23 +#define PIN_WAKEUP GPIO_NUM_15 + #define TRIGGER_GND HIGH #define TRIGGER_5V LOW #define OPTO_PERIOD 200 @@ -267,7 +268,7 @@ void go_to_sleep() { Serial.flush(); Serial.end(); - esp_sleep_enable_ext0_wakeup(GPIO_NUM_15, HIGH); + esp_sleep_enable_ext0_wakeup(PIN_WAKEUP, HIGH); esp_deep_sleep_start(); }