首页 > 器件类别 > 开发板/开发套件/开发工具

MNK00064

RGB LED FOR MICRO:BIT

器件类别:开发板/开发套件/开发工具   

厂商名称:Pimoroni_Ltd

下载文档
器件参数
参数名称
属性值
内容
文档预览
 
 
 
 
RGB LED for micro:bit
MNK00064
The MonkMakes RGB LED for micro:bit provides a colourful
add-on to your micro:bit. Connect it up with alligator clips and
then use the three outputs of your micro:bit to control the red,
green and blue channels to mix up any colour of light you
want.
Features
Easy to connect
Powered directly from micro:bit pins
Useful for teaching color mixing.
Getting Started
Connecting to your micro:bit
Connect the RGB LED to the micro:bit as shown below. When attaching the alligator
clips to the micro:bit, make sure that the clips are perpendicular to the board so that
they are not touching any of the neighbouring connectors on the micro:bit edge
connector.
JavaScript Blocks Editor
Traffic Signal Example
Click on the example below to open the code in the JavaScript Blocks Editor. Once its
running on your micro:bit it will cycle through the colors of a traffic signal.
MicroPython
TRAFFIC SIGNAL EXAMPLE
Paste the following code into the Python window and then Download the file and copy
it onto your your micro:bit
from microbit import *
def set_rgb(red, green, blue):
pin0.write_analog(red)
pin1.write_analog(green)
pin2.write_analog(blue)
while True:
set_rgb(255, 0, 0)
sleep(4000)
set_rgb(800, 100, 0)
sleep(1000)
set_rgb(0, 1023, 0)
sleep(5000)
set_rgb(800, 100, 0)
sleep(1000)
                              https://shop.pimoroni.com/products/rgb‐led‐for‐micro‐bit 6‐11‐18 
查看更多>
晒晒板子
邮票孔还是很好焊接的。 晒晒板子 焊上就不好取下来了。 焊工活做不赖,,, :loveli...
dql2016 MEMS传感器
谁能帮忙提供风光互补控制器电路图?
RT 谁能帮忙提供风光互补控制器电路图? 谁能帮忙提供风光互补控制器电路图? ...
gzhailan 电源技术
希望大家帮帮忙
不好意思 有件事情麻烦大家 老师布置了一项作业之前设计原理图时没看要求 搞错了 现在时间有点急希望大...
血色巅风 综合技术交流
WIN-CE可以作为TCP/IP服务器吗?
我要用两个2440通过Wi-Fi数据传输,是不是 要有一个服务器啊,WIN-CE可以做服务器吗?如何...
catdud 嵌入式系统
肯定对你又帮助!信不信由你
中国视频教程基地 版主:这应该不算广告贴吧 如果版主觉得算的话,敬请删除,也是为了大家好! 肯...
lixinsir 单片机
【STM32H7S78-DK】⑩播放流行音乐,大家一起摇摆!
STM32H7S78-DK 开发板是具备 无敌多媒体功能 的超级开发板。 为什么这么讲呢...
cc1989summer stm32/stm8
热门器件
热门资源推荐
器件捷径:
00 01 02 03 04 05 06 07 08 09 0A 0C 0F 0J 0L 0M 0R 0S 0T 0Z 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 1H 1K 1M 1N 1P 1S 1T 1V 1X 1Z 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 2G 2K 2M 2N 2P 2Q 2R 2S 2T 2W 2Z 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 3G 3H 3J 3K 3L 3M 3N 3P 3R 3S 3T 3V 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4M 4N 4P 4S 4T 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5E 5G 5H 5K 5M 5N 5P 5S 5T 5V 60 61 62 63 64 65 66 67 68 69 6A 6C 6E 6F 6M 6N 6P 6R 6S 6T 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7M 7N 7P 7Q 7V 7W 7X 80 81 82 83 84 85 86 87 88 89 8A 8D 8E 8L 8N 8P 8S 8T 8W 8Y 8Z 90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9F 9G 9H 9L 9S 9T 9W
需要登录后才可以下载。
登录取消