Welcome to Pico Robot Car repository
2.4 Import library file
2.4 Importing library files
In order to facilitate calling various hardware on the control board, we encapsulate various functions into library files. When using, you only need to call the corresponding functions to quickly realize the corresponding functions. Here we introduce how to Import the library files into Pico 2/Pico.
- The import of library files is similar to the establishment of self-starting files in the previous section. First, open the small garage file Pico Robot supporting materials -> Appendix -> Library -> pico_car.py.

- Select File - Save As.

- Select Raspberry Pi Pico.

- Enter pico_car.py in File name. Note that it must be the file name of pico_car.py to be called, and then click Confirm.

- At this point, the pico_car.py file becomes [pico_car.py]. Here, [ ] means that the file exists inside Pico 2/Pico, and the library file is imported successfully.
