原帖作者:dvsseed
ESP8266 / ESP32 的 Espruino 可在 micro:bit 上使用⋯⋯
請參照網文指示安裝~ http://www.espruino.com/MicroBit
即可 JavaScript編碼來控制 micro:bit 了!!
使用 Espruino 玩 BBC micro:bit (BLE + JavaScript)
- shaoziyang
- 帖子: 3966
- 注册时间: 2019年 10月 21日 13:48
Re: 使用 Espruino 玩 BBC micro:bit (BLE + JavaScript)
显示文字
代码: 全选
g = Graphics.createArrayBuffer(5,5,1);
g.flip = function(){show(this.buffer);};
var x = 0;
setInterval(function() {
x++;
if (x>50)x=0;
g.clear();
g.drawString("Espruino",5-x);
g.flip();
}, 100);
-
- 随机主题
- 回复总数
- 阅读次数
- 最新文章
-
- 8回复总数
- 5315 阅读次数
- 最新文章 由 shaoziyang
2020年 5月 30日 08:43
-
- 2回复总数
- 2226 阅读次数
- 最新文章 由 slotg
2020年 5月 4日 09:18
-
- 1回复总数
- 2506 阅读次数
- 最新文章 由 shaoziyang
2020年 5月 4日 09:01