赞
踩
#define PIN 4 //定义了led灯的GPIO为4
void setup() {
pinMode(PIN, OUTPUT);
Serial.begin(9600);
}
void loop() {
digitalWrite(PIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); Serial.print("1"); // wait for a second
digitalWrite(PIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); Serial.println("0"); // wait for a second
}
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。