Skip to content

Commit

Permalink
Timing and button data fix, readme update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Franticware committed Apr 14, 2024
1 parent 57eecc8 commit f59cbce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ https://www.high-voltage.cz/sortky/potrebujete-playstation-mouse-zbastlete-si-ji
## Show off

Share your build here: https://github.com/Franticware/usb-to-playstation-mouse/discussions/1

## Special thanks to

[@deefha](https://github.com/deefha) for lending me his original SCPH-1090 PlayStation Mouse
6 changes: 2 additions & 4 deletions usb/host/usb_to_ps1_mouse/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ void postAck(void)
sleep_us(8);
gpio_set_dir(GP_ACK, GPIO_OUT);
gpio_set(GP_ACK, 0);
sleep_us(2);
sleep_us(3);
gpio_set(GP_ACK, 1);
sleep_us(2);
gpio_set_dir(GP_ACK, GPIO_IN);
gpio_pull_up(GP_ACK);
}
Expand Down Expand Up @@ -219,8 +218,7 @@ void core1_entry() {
rightState = QueueGet(rightStateQ);
}

buttons1 = 0;

buttons1 = 3;

if (leftState)
{
Expand Down

0 comments on commit f59cbce

Please sign in to comment.