Skip to content
Snippets Groups Projects
Commit 77abdd0c authored by Carsten Fuhrmann's avatar Carsten Fuhrmann
Browse files

Pinbelegung

parent 475e9b5b
No related branches found
No related tags found
No related merge requests found
...@@ -23,14 +23,15 @@ ...@@ -23,14 +23,15 @@
//#include "measurements.h" //#include "measurements.h"
#include "cc_emu.h" #include "cc_emu.h"
#include "bt.h" #include "bt.h"
#define PIN_CCPSE 22 #define PIN_CCINS 2
#define PIN_CCMOD 21
#define PIN_CCLDG 19
#define PIN_CCINS 18
#define PIN_CCEJT 4 #define PIN_CCEJT 4
#define PIN_LED 2 #define PIN_CCLDG 5
#define PIN_PBREF 1 #define PIN_OPTO 21
#define PIN_OPTO 5 #define PIN_CCMOD 18
#define PIN_CCPSE 22
#define PIN_LED 23
#define PIN_WAKEUP GPIO_NUM_15
#define TRIGGER_GND HIGH #define TRIGGER_GND HIGH
#define TRIGGER_5V LOW #define TRIGGER_5V LOW
#define OPTO_PERIOD 200 #define OPTO_PERIOD 200
...@@ -267,7 +268,7 @@ void go_to_sleep() { ...@@ -267,7 +268,7 @@ void go_to_sleep() {
Serial.flush(); Serial.flush();
Serial.end(); Serial.end();
esp_sleep_enable_ext0_wakeup(GPIO_NUM_15, HIGH); esp_sleep_enable_ext0_wakeup(PIN_WAKEUP, HIGH);
esp_deep_sleep_start(); esp_deep_sleep_start();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment