树莓派 BerryClip 6 LED Add-on Board Python学习板 笔记

BerryClip 6 LED Add-on Board Python学习板 SKU编码:RPi-MS100A

Python是树莓派Raspberry Pi官方推荐的面向硬件控制语言。本开发板硬件包含有6只LED,1个按钮,1个蜂鸣器。见下图的A/B/C区域。本宝贝可直接插入树莓派26P排针中,直接开始Python语言创作。即插即用!设计中预留排线槽,对今后官方的Addon扩展板进行物理空间兼容。

树莓派 BerryClip 6 LED Add-on Board Python学习板 笔记_第3张图片

安装实例:

树莓派 BerryClip 6 LED Add-on Board Python学习板 笔记_第1张图片

预留排线槽,对今后官方的Addon扩展板进行物理空间兼容

树莓派 BerryClip 6 LED Add-on Board Python学习板 笔记_第2张图片

淘宝链接: http://item.taobao.com/item.htm?spm=a1z09.2.9.11.4PFMrj&id=35904520777

---------------------------------------------------------------------------------------------------

笔记: http://www.raspberrypi-spy.co.uk/berryclip-6-led-add-on-board/berryclip-6-led-add-on-board-instructions/

BerryClip是一个Rpi的扩展板,它能直接插在树莓派的GPIO接口上,提供了6只LED,1个按钮,1个蜂鸣器。可以使用任何支持操作GPIO pins的编程语言(如python)来控制它。

代码在:https://bitbucket.org/MattHawkinsUK/ ,已经fork,RPiSpy BerryClip 和 RPiSpy BerryClip Plus

  • berryclip_01.py – Test LEDs only
  • berryclip_02.py – Test Buzzer only
  • berryclip_03.py – Test Switch only
  • berryclip_04.py – Test LEDs and Switch
  • berryclip_05.py – Test LEDs, Buzzer and Switch
  • berryclip_06.py – LED sequence
  • berryclip_07.py – Dice Simulator
  • berryclip_08.py – Reaction time game
  • berryclip_09.py – Random LEDs
  • berryclip_10.py – Multiple LED sequences in a loop
  • berryclip_11.py – Traffic light simulator
  • berryclip_12.py – Morse code generator
sudo python berryclip_01.py

针脚对应参考:

LED 1  - Pin 7  - GPIO4
LED 2  - Pin 11 - GPIO17
LED 3  - Pin 15 - GPIO22
LED 4  - Pin 19 - GPIO10
LED 5  - Pin 21 - GPIO9
LED 6  - Pin 23 - GPIO11
Buzzer - Pin 24 - GPIO8
Switch - Pin 26 - GPIO7



你可能感兴趣的:(树莓派 BerryClip 6 LED Add-on Board Python学习板 笔记)