SunFounder Thales Kit for Raspberry Pi Pico, Release 1.0
1. Connect the 3V3 pin of Pico to the positive power bus of the breadboard.
2. Insert the button into the breadboard and straddle the central dividing line.
3. Use a jumper wire to connect one of the button pins to the
negative
bus (mine is the pin on the upper right).
4. Connect the other pin (upper left or lower left) to GP14 with a jumper wire.
5. Use a 10K resistor to connect the pin on the upper left corner of the button and the
positive
bus.
6. Connect the negative power bus of the breadboard to Pico’s GND.
import
machine
import
utime
button
=
machine
.
Pin(
14
, machine
.
Pin
.
IN)
while
True
:
if
button
.
value()
==
0
:
# When the button is pressed, GPIO will be connected to GND.
(
"You pressed the button!"
)
utime
.
sleep(
1
)
Also see the reference here:
•
3.4. Projects
57
Summary of Contents for Thales Kit
Page 1: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 Jimmy SunFounder Jun 04 2021 ...
Page 2: ......
Page 4: ...ii ...
Page 6: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 2 CONTENTS ...
Page 140: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 136 Chapter 3 For MicroPython User ...
Page 164: ...SunFounder Thales Kit for Raspberry Pi Pico Release 1 0 160 Chapter 4 For Arduino User ...