Commit 24bc7b88 authored by schneider's avatar schneider
Browse files

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

parent 32cbee6f
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment