![]() _thread.start_new_thread(button_reader_thread, ()) #Start a new thread to monitor the stats of button Open the Lesson-9 Traffic-Light-System example by Thonny, run the codes and test the traffic light, the buzzer sounds when you press the button.ĭef button_reader_thread(): #Check if the button is pressed Led_external.toggle() #Toggle the LED every 5 seconds.Ĭonnect the boards as in the picture below. Led_external = machine.Pin(15, ) #Set GP15 to output Mode Run the example, and you will find that the red LED is flahing. Open the Lesson-5 External LED example with Thonny. Download Demo Codes to your Raspberry Pi and test.Ĭonnect the boards as in the picture below.Please set the Thonny development environment to be RaspberryPi when setting.Please follow the guides of Raspberry Pi to install and set up Pico for the Pico.įor easy use, we recommend you use the Thonny tool. RP2040-Zero uses the same RP2040 chip as the Raspberry Pi Pico, and it is compatible with the Raspberry Pi Pico, in this case, most of the accessories and codes can be used with the RP2040-LCD-0.96 as well. 8 × Programmable I/O (PIO) state machines for custom peripheral support.Accelerated floating-point libraries on-chip. ![]() 2 × SPI, 2 × I2C, 2 × UART, 4 × 12-bit ADC, 16 × controllable PWM channels.29 × multi-function GPIO pins (20× via edge pinout, others via solder points).Drag-and-drop programming using mass storage over USB.The castellated module allows soldering direct to carrier boards.USB-C connector, keeps it up to date, easier to use.264KB of SRAM, and 2MB of on-board Flash memory.Dual-core Arm Cortex M0+ processor, flexible clock running up to 133 MHz.RP2040 microcontroller chip designed by Raspberry Pi in the United Kingdom.RP2040-Zero, A Low-Cost, High-Performance Pico-Like MCU Board Based On Raspberry Pi Microcontroller RP2040. 1.6.3 Burglar Alarm LED Buzzer Examples.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |