HACK: Invert the order of "write to i2c" and "read from i2c"

HACK: Invert the order of "write to i2c" and "read from i2c" because we're
seeing a weird phantom issue where after writing LED data to the ATTiny,
and reading immediately, we get back its own address, a 0 byte and then
garbage

I2C,Setup Read to [0xB1] + ACK
I2C,0xB1 + ACK
I2C,0x00 + ACK
I2C,0xFF + ACK
I2C,0xFF + ACK
I2C,0xFF + NAK

It appears that this has ~nothing to do with the ATTiny's firmware,
but I've been wrong before
pull/18/head
Jesse Vincent 9 years ago
parent 06383e8c3d
commit 61798be38e

@ -24,9 +24,9 @@ void setup() {
void loop() { void loop() {
KeyboardHardware.scan_matrix(); KeyboardHardware.scan_matrix();
LEDControl.update(temporary_keymap);
Keyboard.sendReport(); Keyboard.sendReport();
Keyboard.releaseAll(); Keyboard.releaseAll();
LEDControl.update(temporary_keymap);
} }

Loading…
Cancel
Save