Skip to content
Snippets Groups Projects
Commit 24bc7b88 authored by schneider's avatar schneider
Browse files

fix(top-board): Turn on power to LEDs by default

parent 32cbee6f
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,12 @@ void portexpander_init(void)
// Set outputs to high (i.e. open-drain)
command[0] = 0x01; command[1] = 0x97;
I2C_MasterWrite(MXC_I2C1_BUS0, addr << 1, command, 2, 0);
// Turn on LEDs
// TODO: only turn on LEDs if value != 0,0,0 && dim > 0
command[0] = 0x01; command[1] = 0x90;
I2C_MasterWrite(MXC_I2C1_BUS0, addr << 1, command, 2, 0);
}
uint8_t portexpander_get(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment