Skip to content

Commit d5bfbc0

Browse files
committed
Update Inkplate10_Wake_Up_On_Touchpads.ino
1 parent 889b221 commit d5bfbc0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Wake_Up_On_Touchpads/Inkplate10_Wake_Up_On_Touchpads.ino

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
1818
#if !defined(ARDUINO_INKPLATE10) && !defined(ARDUINO_INKPLATE10V2)
1919
#error \
20-
"Wrong board selection for this example, please select e-radionica Inkplate10 or Soldered Inkplate10 in the boards menu."
20+
"Wrong board selection for this example, please select e-radionica Inkplate10 in the boards menu."
2121
#endif
2222

23-
#include <Inkplate.h>
23+
// Include Inkplate library to the sketch
24+
#include "Inkplate.h"
2425

2526
// Conversion factor for micro seconds to seconds
2627
#define uS_TO_S_FACTOR 1000000
@@ -49,10 +50,6 @@ void setup()
4950
display.setIntPin(PAD1, RISING, IO_INT_ADDR);
5051
display.setIntPin(PAD2, RISING, IO_INT_ADDR);
5152
display.setIntPin(PAD3, RISING, IO_INT_ADDR);
52-
#elif defined(ARDUINO_INKPLATE10V2)
53-
display.setIntPin(PAD1, IO_INT_ADDR);
54-
display.setIntPin(PAD2, IO_INT_ADDR);
55-
display.setIntPin(PAD3, IO_INT_ADDR);
5653
#endif
5754

5855
++bootCount;
@@ -67,9 +64,6 @@ void setup()
6764
#if defined(ARDUINO_INKPLATE10)
6865
// MCP I/O expander sends logic HIGH pulse signal as interrupt.
6966
esp_sleep_enable_ext1_wakeup(TOUCHPAD_WAKE_MASK, ESP_EXT1_WAKEUP_ANY_HIGH);
70-
#elif defined(ARDUINO_INKPLATE10V2)
71-
// PCAL I/O expander sends logic LOW pulse signal as interrupt.
72-
esp_sleep_enable_ext1_wakeup(TOUCHPAD_WAKE_MASK, ESP_EXT1_WAKEUP_ALL_LOW);
7367
#endif
7468

7569
// Go to sleep

0 commit comments

Comments
 (0)