I. Raspberry System Settings
1. First, when the development board is not powered on, connect the hardware and use the sensors in the project. For example, in the current project, LED lights need to be plugged into the bread board, and then the development board and bread board are connected through the Du Bang line to build a hardware platform.
2. Secondly, open the raspberry pie development board 3B and connect it with vnc.
3. Turn on the ssh function.
As shown below, raspberry Pi configuration.
Enable SSH connection, and then click OK.
After the change, it needs to be restarted to take effect.
Secondly, connect the development board Raspberry Pi with ssh.
1. Open the pre-installed file Zilla, enter the IP address, account number and port number, and connect the Linux system of Raspberry Pie.
2. Create a folder to store development projects in the current pi directory. Create a specific project folder on the project folder to store the project files. For example, create an LED light project in the DIYdemo directory.
3. Put the python program files written on the PC side into the LED folder.
Third, run python code.
1. Open VNC software and click menu-Programming-python3(IDLE 3).
2. Open the written program and run the python program.
Python learning network, free online learning Python platform, welcome to pay attention!