mBlock Extension for Arduino Esplora mBlock的Esplora擴展
2 min readFeb 7, 2019
此擴展為筆者所製作的,可在 mBlock 的擴展管理器下載:
也可至 mBlock 的官網下載:http://www.mblock.cc/extensions/。 在 Scratch 模式中,有幾個感測器需要在積木程式中做轉換(這是因為從積木程式得到的數值是未經過轉換的Raw Data),需要做轉換的有
- 三軸加速計的X、Y、Z軸。
- 溫度感測器。
- 搖桿的X、Y軸。
而在 Arduino 模式中,就不用做這些轉換的,因為 Arduino IDE 的內建 Esplora Library 已有做轉換了。 mBlock範例程式下載:
Scratch Mode Example: ScratchMode。
Arduino Mode Example: ArduinoMode。
參考資料:
Originally published at yunlinsong.blogspot.com on February 7, 2019.