*
* Teensy
* col: 0 1 2 3 4 5
- * pin: F0 F1 F4 F5 F6 F7
+ * pin: F0 F1 F4 F5 F6 F7
*
* MCP23018
* col: 0 1 2 3 4 5
- * pin: B5 B4 B3 B2 B1 B0
+ * pin: B5 B4 B3 B2 B1 B0
*/
static void init_cols(void)
{
// set other rows hi-Z : 1
mcp23018_status = i2c_start(I2C_ADDR_WRITE); if (mcp23018_status) goto out;
mcp23018_status = i2c_write(GPIOA); if (mcp23018_status) goto out;
- mcp23018_status = i2c_write( 0xFF & ~(1<<row)
+ mcp23018_status = i2c_write( 0xFF & ~(1<<row)
& ~(ergodox_left_led_3<<LEFT_LED_3_SHIFT)
); if (mcp23018_status) goto out;
out:
}
}
}
-