Skip to content

Commit ea16989

Browse files
committed
Fixed wake up on touchpads on Inkplate5, Inkplate6 and Inkplate10.
1 parent 57486a7 commit ea16989

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Wake_Up_On_Touchpads/Inkplate_Wake_Up_On_Touchpads.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void setup()
5555
esp_sleep_enable_ext0_wakeup(GPIO_NUM_34, 1);
5656

5757
// Enable wakup from deep sleep on gpio 36
58-
esp_sleep_enable_ext0_wakeup(GPIO_NUM_36, 0);
58+
esp_sleep_enable_ext1_wakeup((1ULL << 36), ESP_EXT1_WAKEUP_ALL_LOW);
5959

6060
// Go to sleep
6161
esp_deep_sleep_start();

examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Wake_Up_On_Touchpads/Inkplate_Wake_Up_On_Touchpads.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void setup()
5555
esp_sleep_enable_ext0_wakeup(GPIO_NUM_34, 1);
5656

5757
// GPIO 36 is where the wake up button is connected
58-
esp_sleep_enable_ext0_wakeup(GPIO_NUM_36, 0);
58+
esp_sleep_enable_ext1_wakeup((1ULL << 36), ESP_EXT1_WAKEUP_ALL_LOW);
5959

6060
// Go to sleep
6161
esp_deep_sleep_start();

examples/Inkplate6/Advanced_Inkplate_Features/Inkplate_Wake_Up_On_Touchpads/Inkplate_Wake_Up_On_Touchpads.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ void setup()
3939

4040
// Setup mcp interrupts
4141
display.pinModeInternal(MCP23017_INT_ADDR, display.mcpRegsInt, touchPadPin, INPUT);
42-
display.setIntOutput(1, false, false, HIGH);
43-
display.setIntPin(touchPadPin, RISING);
42+
display.setIntOutputInternal(MCP23017_INT_ADDR, display.mcpRegsInt, 1, false, false, HIGH);
43+
display.setIntPinInternal(MCP23017_INT_ADDR, display.mcpRegsInt, touchPadPin, RISING);
4444

4545
++bootCount;
4646

src/boards/Inkplate5.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ bool Inkplate::begin(void)
3838
Wire.begin();
3939

4040
#ifndef ARDUINO_INKPLATECOLOR
41-
setDisplayMode(_mode);
4241
for (uint32_t i = 0; i < 256; ++i)
4342
pinLUT[i] = ((i & B00000011) << 4) | (((i & B00001100) >> 2) << 18) | (((i & B00010000) >> 4) << 23) |
4443
(((i & B11100000) >> 5) << 25);

0 commit comments

Comments
 (0)