3. When you need to save the modified file, you can press the shortcut key
"Ctrl+S", then select "Yes". If there is a "Permission denied" error, just run the
command in MobaXterm:
sudo chmod -R 777 adeept_picarpro/server
3.4.3 Main code program
Complete code reference file switch.py
1. First import the library used to control the Raspberry Pi GPIO, and instantiate
it as a GPIO while importing it. Import the time library for code delay.
1. import RPi.GPIO as GPIO