看到一个手机遥控LED灯的实例,请大神解密AppInventor程序!
所需硬件:microbit、LED模块、蓝牙模块所需软件:AppInventor、Makecode手机通过蓝牙遥控连接图
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83134&size=300x300&key=2263d16ffca4f30d&nocache=yes&type=fixnone
手机通过蓝牙遥控关灯效果图
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83132&size=300x300&key=5d2413a5fe6103f2&nocache=yes&type=fixnone
手机通过蓝牙遥控开灯效果图
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83133&size=300x300&key=50a811032737a5ba&nocache=yes&type=fixnone
microbit程序如图所示
(看上去未用到蓝牙相关模块,貌似是用RXD和TXD这两个串口通讯了,查网上有关“AppInventor+microbit+蓝牙通讯”的帖子都是要用到蓝牙相关模块的)
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83139&size=300x300&key=1acd7145c6a86088&nocache=yes&type=fixnone
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83140&size=300x300&key=3a5df5274999a0f4&nocache=yes&type=fixnone
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83143&size=300x300&key=b0d310cfd16051c1&nocache=yes&type=fixnone
根据microbit程序,AppInventor程序要怎么写呢?!
自己尝试写了一个程序,只能连接蓝牙,但不能控制LED亮灭,希望走过路过的能大神指点一二!!!
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83144&size=300x300&key=edeb25895764fd20&nocache=yes&type=fixnone
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83146&size=300x300&key=50dc07d4ac006f16&nocache=yes&type=fixnone
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83149&size=300x300&key=c89ce0512fe7ff9a&nocache=yes&type=fixnone
https://mc.dfrobot.com.cn/forum.php?mod=image&aid=83151&size=300x300&key=f9993dc5b7da1af7&nocache=yes&type=fixnone
[高级教程]Micro bit 与 App Inventor2 蓝牙通信
https://mc.dfrobot.com.cn/thread-297491-1-1.html
页:
[1]