.. _rp2_quickref: 树莓派RP2xxx 快速参考手册 =========================== .. image:: img/pico_pinout.png :alt: Raspberry Pi Pico :width: 640px The Raspberry Pi Pico Development Board (image attribution: Raspberry Pi Foundation). Below is a quick reference for Raspberry Pi RP2xxx boards. If it is your first time working with this board it may be useful to get an overview of the microcontroller: .. toctree:: :maxdepth: 1 general.rst tutorial/intro.rst 安装 MicroPython ---------------------- See the corresponding section of tutorial: :ref:`rp2_intro`. It also includes a troubleshooting subsection. 通用控制 --------------------- The MicroPython REPL is accessed via the USB serial port. Tab-completion is useful to find out what methods an object has. Paste mode (ctrl-E) is useful to paste a large slab of Python code into the REPL. The :mod:`machine` module:: import machine machine.freq() # get the current frequency of the CPU machine.freq(240000000) # set the CPU frequency to 240 MHz The :mod:`rp2` module:: import rp2 延时和时间 ---------------- Use the :mod:`time