BPI BerryClip 6 LED Module
Last updated
Last updated
Product specification
Product Overview:
The module is designed specifically for learning control the GPIO of Banana Pi. There are 6 LED, 1 button and 1 Beep on the module; All of them can use the GPIO of Banana Pi to control. The beginner can learn the INPUT mode of GPIO through the key and learn the OUTPUT mode through the LED or Beep
Product Feature:
6 multicolor LED
1 single button on board
1 Beep on board
Port:
BananaPi 2X13 port,also can use on raspberry pi.
Product Parameters: 1. Working voltage: 3.3V 2. LED max current allow 8mA 3. Beep max current allow 12mA
Typical Application:
Hardware beginner learning
Education
How to use:
Insert the BerryClip in the Banana Pi, Pay attention don’t make the direction reversed! The correct direction of insert module is above the Banana Pi’s PCB.
Testbench: 1. Setup the GPIO OUTPUT, Output LED High level, the LED will be lighten; 2. Setup the GPIO INPUT, press the button; 3. Test finish
Example and Test Code:
BPI BerryClip 6 LED Module and how to use on BPI-M3
OS: BPI-M3 Ubuntu15.10 (Kernel3.4)
Version: 1.0 HDMI
Step 1: Download WiringPI
Step 2 : Copy smaple code to BerryClip.c file
$ sudo vi BerryClip.c
Step 3 : Compile BerryClip.c
$ gcc -o BerryClip BerryClip.c -l wiringPi
Step 4 : Run BerryClip
$ sudo ./BerryClip
Step 5: Press the button to see if it works
Video demo on youtube:
https://www.youtube.com/watch?v=kIPbm86sqnw
link to forum:
http://forum.banana-pi.org/t/bpi-m3-bpi-berryclip-6-led-module-and-how-to-use/1077