SunFounder Thales Kit for Raspberry Pi Pico
latest
  • Introduction to Raspberry Pi Pico
  • What is Included in This Kit
  • For MicroPython User
  • For Arduino User
  • For Piper Make
    • Quick Guide on Piper Make
    • Blink LED
    • Button
    • Slide Switch
    • Tilt Switch
    • Active Buzzer
    • PIR Module
    • RGB LED
    • Servo
    • Neopixel
  • FAQ
  • Thank You
SunFounder Thales Kit for Raspberry Pi Pico
  • Docs »
  • For Piper Make »
  • Blink LED
  • Edit on GitHub

Blink LEDΒΆ

For this project, we intend to make the extended LED light blink. To use extended electronic components, a solderless breadboard will be the most powerful partner for novice users.

The breadboard is a rectangular plastic plate with a bunch of small holes in it. These holes allow us to easily insert electronic components and build electronic circuits. The breadboard does not permanently fix the electronic components, which makes it easy for us to repair the circuit and start over when we make a mistake.

Wiring

../_images/wiring_hello_breadboard.png
  • The color ring of the 220 ohm resistor is red, red, black, black and brown.

  • The longer lead of the LED is known as the anode (+), the shorter lead is the cathode (-).

Code

After connecting Pico, click the Start button and you will see the LED blinking. For more details, you can refer to How to use Piper Make.

../_images/blink1.png

Code Explanation

This is the body of the loop: turn the pin15 on to light up the LED, wait one second, then turn the pin15 off to make the LED go off. Wait 1 second and then re-run the previous cycle, so you can see the LED has been in the state of alternating between light and off.

  • [start]: This block is the basic framework of the program and represents the beginning of the program.

  • [repeat forever do() wait()seconds]: Means that the blocks in it will be executed repeatedly, and the execution time interval is defined by yourself.

  • [turn pin () ON/OFF]: Indicates that a certain pin is placed in a high level (ON) or a low level (OFF).

  • [wait () seconds]: Set the execution interval between blocks.

Next Previous

© Copyright 2021, SunFounder Revision 9808f402.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
master
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.