bigfanofloT 发表于 2017-8-5 10:24:26

Arduino UNO使用一个IO驱动WS2812B全彩LED

ws2812模块这个样子,用Arduino驱动它最好不过了;
http://bbs.cirmall.com/data/attachment/forum/201707/30/112959yivxxomxbmorvoym.jpg.thumb.jpg

硬件准备如此简单:
http://bbs.cirmall.com/data/attachment/forum/201707/30/11294451k33eehck59ehzk.jpg.thumb.jpg

在https://github.com/adafruit/Adafruit_NeoPixel下载驱动库,解压后,把它重命名为Adafruit_NeoPixel,并放到Arduino IDE的安装目录下的\libraries文件夹下;
打开\libraries\Adafruit_NeoPixel\examples例程strandtest,连接好pin,编译,烧录;

http://bbs.cirmall.com/data/attachment/forum/201707/30/113202o1ot9lot79bt17ba.png.thumb.jpg

效果美翻了有木有~~~
http://bbs.cirmall.com/data/attachment/forum/201707/30/113014gos9m4e43s0j9ed9.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/113024zloc76y6jsohykya.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/113034f88ks9zj648f69gg.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/113045dimu2lhyls22gi2f.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/113102rfqmrpooko3lntkq.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/1131148da0lyo3r0il2jis.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/113124uj6qha4tzbeekgeh.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/113135lhejphd6q4qq4q2e.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/113147pdzdbfmf6k2y22ph.jpg.thumb.jpg

http://bbs.cirmall.com/data/attachment/forum/201707/30/11315796331l3gl6oo8o26.jpg.thumb.jpg

时间奔跑者 发表于 2018-6-20 15:29:44

炫酷哦,不错

阿紫 发表于 2019-8-22 22:14:06

效果在哪里?
页: [1]
查看完整版本: Arduino UNO使用一个IO驱动WS2812B全彩LED