/* Blink Turns an LED on for one second, then off for one second, repeatedly. */// define variables here// variables should be defined before setup()// You must include void setup() and void loop() in every Arduino sketch, or the program won't compil
尽管造书去做的.但还是有莫名的成就感 从串口显示出,电压变化, void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: int val=analogRead(A0); Serial.println(val); delay(500); } wate
最近在开发过程中,用到了Arduino开发板以及其IDE:Arduino,这个IDE使用起来很方便,编码也很简单,但有一点美中不足的是Arduino只能输出数值,不能绘图,所以就用到了另外一款串口调试软件----SerialChart. 废话不多说,直接上程序. Arduino程序 void setup() { // put your setup code here, to run once: Serial.begin(); } void loop() { // put your main co