Hardware Reference
In-Depth Information
1. Type sudo nano /etc/rc.local and press Enter .
2. Go to the very last line before exit 0 . Our entry needs to be made before this.
3. Type the path to your retrogame application, for example, /home/pi/
Adafruit-Retrogame/retrogame & .
4. Press Ctrl + X and then Y to save the file.
5. You will now have to add a udev rule, so that other applications can see the new
buttons. Udev is essentially a device manager. Setting up the rules will let other
applications know how to use your device.
6. Type sudo nano /etc/udev/rules.d/10-retrogame.rules and
press Enter .
7. Then, type SUBSYSTEM=="input", ATTRS{name}=="retrogame",
8. Press Ctrl + X , then Y to save your new udev rules.
9. Now, restart your Raspberry Pi, and your GPIO controller will be ready.
Search WWH ::

Custom Search