Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
alienzhangyw edited this page Apr 25, 2020 · 4 revisions

GPIO

You can read the instructions about Raspberry Pi GPIO here.

BlockPi uses BCM numbering to control GPIO ports.

LED

You can use jumper wires to connect the LED directly to the GPIO ports, or you can use a bread board or an expansion HAT.

I use an IO Expansion HAT from DFRobot.

IO Expansion HAT for Raspberry Pi

Connect the LED's longer foot to a GPIO port and the shorter foot to GND。

Blinking LED

or

or

Breathing LED

Traffic lights

You can also use a RGB LED module to do this.