From dd12b6d6cf6ff1214cb6d8b8ebc8e06585111b71 Mon Sep 17 00:00:00 2001 From: frank Date: Thu, 30 Mar 2023 17:09:47 -0700 Subject: [PATCH] swap left and right button GPIO pins --- README.md | 2 +- electric_sieve/ElectricSieve.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fef3b9a..1ef9c26 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/electric_sieve/ElectricSieve.py b/electric_sieve/ElectricSieve.py index 52c0764..5dace12 100644 --- a/electric_sieve/ElectricSieve.py +++ b/electric_sieve/ElectricSieve.py @@ -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