A collection of useful links related to programming a robot for the PiWars
Event Based Commands using GPIOZero library
Advantages can run functions outside the usual "while" loop
-
Event based buttons:
https://gpiozero.readthedocs.io/en/v1.5.1/recipes.html#button-controlled-led -
Event based motor start stop using sensors:
https://gpiozero.readthedocs.io/en/v1.5.1/recipes.html#robot -
Run code remotely on Raspberry Pi from PyCharm:
https://www.jetbrains.com/help/pycharm/remote-development-on-raspberry-pi.html -
Run code remotely on Raspberry Pi from Visual Studio Code:
https://www.hanselman.com/blog/VisualStudioCodeRemoteDevelopmentOverSSHToARaspberryPiIsButter.aspx -
Dummy RPi.GPIO library to have autocomplete feature in the IDE:
https://github.com/Def4l71diot/RPi.GPIO-def -
How to install picamera module in your dev env (not RPi):
From within the virtual environment type:export READTHEDOCS=True pip install picamera