swap left and right button GPIO pins

This commit is contained in:
ohsqueezy 2023-03-30 17:09:47 -07:00
parent 041156f466
commit dd12b6d6cf
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ Once Python and Pygame have been installed, clone the repository, including PGFW
Raspberry Pi
------------
If running on a Raspberry Pi, it is possible to control left and right using buttons connected to the Raspberry Pi pins GPIO 23 and GPIO 24. It should work automatically as long as [RPi.GPIO](https://sourceforge.net/p/raspberry-gpio-python/wiki/Home/) is installed, which should be installed by default.
If running on a Raspberry Pi, it is possible to control left and right using buttons connected to the Raspberry Pi pins GPIO 24 and GPIO 23. It should work automatically as long as [RPi.GPIO](https://sourceforge.net/p/raspberry-gpio-python/wiki/Home/) is installed, which should be installed by default.
BiTFiT is the first [Playzing](https://shampoo.ooo/playzing) compatible game. See the [Playzing builder's manual][] for detailed instructions on how to get it running.

View File

@ -29,8 +29,8 @@ except ImportError:
class ElectricSieve(Game):
# The GPIO pins corresponding to the buttons and LED indicators
PIN_BUTTON_LEFT = 23
PIN_BUTTON_RIGHT = 24
PIN_BUTTON_LEFT = 24
PIN_BUTTON_RIGHT = 23
PIN_LED_UP = 22
PIN_LED_DOWN = 23