File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,15 @@ bool Inkplate::begin(void)
110
110
111
111
// Battery voltage Switch MOSFET
112
112
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);
113
122
114
123
DMemoryNew = (uint8_t *)ps_malloc (E_INK_WIDTH * E_INK_HEIGHT / 8 );
115
124
_partial = (uint8_t *)ps_malloc (E_INK_WIDTH * E_INK_HEIGHT / 8 );
You can’t perform that action at this time.
0 commit comments