Merge pull request #8 from jepler/data-driving-level

don't drive data line high EVER thanks
This commit is contained in:
Jeff Epler 2025-01-21 10:13:27 -06:00 committed by GitHub
commit 60e422feaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ send_byte:
send_bit:
wait 0 pin 1
out pins 1
out pindirs 1
wait 1 pin 1
jmp x-- send_bit

View file

@ -43,7 +43,7 @@ static int parity(int x) {
}
static void kbd_write_blocking(int value) {
value = value | (parity(value) << 8);
pio_sm_put_blocking(kbd_pio, kbd_sm, value);
pio_sm_put_blocking(kbd_pio, kbd_sm, ~value);
}
static bool expect(int expected, const char *msg) {