Merge pull request #8 from jepler/data-driving-level
don't drive data line high EVER thanks
This commit is contained in:
commit
60e422feaf
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue