Skip to content

Commit 440d910

Browse files
committed
Low power issue on Inkplate6
1 parent d373c1c commit 440d910

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/boards/Inkplate6.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ bool Inkplate::begin(void)
110110

111111
// Battery voltage Switch MOSFET
112112
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 9, OUTPUT);
113+
114+
// Set unused pins of the first MCP as outputs, low logic state
115+
// (to have the lowest current consumption in low power mode)
116+
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 13, OUTPUT);
117+
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 14, OUTPUT);
118+
pinModeInternal(MCP23017_INT_ADDR, mcpRegsInt, 15, OUTPUT);
119+
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 13, LOW);
120+
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 14, LOW);
121+
digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, 15, LOW);
113122

114123
DMemoryNew = (uint8_t *)ps_malloc(E_INK_WIDTH * E_INK_HEIGHT / 8);
115124
_partial = (uint8_t *)ps_malloc(E_INK_WIDTH * E_INK_HEIGHT / 8);

0 commit comments

Comments
 (0)