This section explains the development environment for using CFNET modules with Python on the Modular Pi.
It also provides guidance on setting up a remote development environment by connecting to the Modular Pi using the Visual Studio Code Remote-SSH feature on a development PC.
The following basic configuration must be prepared:
Please download and install Python and Visual Studio Code suitable for your development PC platform (Windows, macOS, etc.) from the links below.
This section explains how to write and execute programs using Visual Studio Code.
This explains how to connect the development PC and the Modular Pi remotely, allowing you to run Python code written in Visual Studio Code directly on the Modular Pi. The development PC and Modular Pi must be connected to the same network.
Install the Remote-SSH extension from the Visual Studio Code Extensions marketplace.
To connect to the Modular Pi, you must register the Remote-SSH network in Visual Studio Code. Proceed with the registration as follows:
☞ If the Modular Pi uses password authentication for SSH, simply enter the password upon connection. The default password is raspberry.
Once the Modular Pi host (pi) is successfully registered, you can connect remotely in Visual Studio Code as follows:
You can now access the /home/pi/ directory on the Modular Pi, create files, and write/run Python programs.
☞ If the run button is not visible, please install the Python Extension Pack from the Extensions marketplace.