适用版本:arduino0023
使用方法:
1、把Scratch文件夹复制到arduino的library下;
2、打开scratchDemo.pde,正确选择arduino板子的型号和端口,并upload即可。
端口连接说明:
board.setSlider_toAnalogPin(0); // use Analog 0 for 滑竿
board.setLight_toAnalogPin(1); // use Analog 1 for 光线
board.setSound_toAnalogPin(2); // use Analog 2 for 声音
board.setResistorA_toAnalogPin(3); // use Analog 3 for 电阻A
board.setResistorB_toAnalogPin(4); // use Analog 4 for 电阻B
board.setResistorC_toAnalogPin(5); // use Analog 5 for 电阻C
board.setButton_toDigitalPin(10); // use Digital 10 for 按钮
程序编写:zageek
说明撰写:谢作如
更多帮助:http://blog.sina.com.cn/xiezuoru/
2013.1.18
1