Working with Raspberry Pi Pico
This chapter contains the following sections. Please read as needed:
Setting Up Development Environment
1. Installation and Configuration
- For setting up the Raspberry Pi Pico environment and basic usage, please refer to the following links:
- After setting up the environment, connect the sensor and download the example package.
Example
Hardware Connection
Refer to the following diagrams for connection

Run Arduino Pico Demo
-
Navigate to
Environment-X6-Sensor\examples\pico\arduino\environment_x6_sensor_testand double-clickenvironment_x6_sensor_test.inoto open the project. -
Select the chip model and port.

-
After uploading, open the serial port monitor, and the relevant information will be output.
Run MicroPython Demo
-
First flash the Raspberry Pi Pico with MicroPython firmware.
-
Navigate to
Environment-X6-Sensor\examples\pico\micropythonand double-click theenvironment_x6_sensor_test.pyfile. -
Select the development board.

-
Select the port for the Raspberry Pi Pico, then run the program.
-
The relevant information will be output in the Shell.