玩转 Arduino合集
玩转Arduino合集
Arduino是什么 Arduino硬件介绍 ⊙回四回巴 Arduino编程环境介绍 a o:r a Licht eacth ancel io cambered to a digLtal or attard te tt s CReated I pe :00s based a aee且. EazLagsn Lu: the vilne1/be△td tanlodedledPin, omT eta the antal pin ag ouput asntvnieededhan, HIGH) the ta on 上as eaeitalkrce(ledFln, L00)t
Arduino是什么? • Arduino硬件介绍 • Arduino编程环境介绍
Arduino的安装 Arduino IDE的安装 USB驱动的安装
Arduino的安装 • Arduino IDE的安装 • USB驱动的安装
Arduino程序结构: setup o Blink I Arduino 0021 ⊙回回四國圖 Bnk§ Blink Turns on an LED on for one second, then off for one second, repeatedly This example code is in the public domain 上电后seup函数执行一次 void setupof // initialize the digital pin as an output // Pin 13 has an LED connected on most Arduino boards: pinMode (13, OUTPUT); void loops digitalWrite(13, HIGH); / set the LED on deay(1880; 1/ wait for a second digitalWrite(13, LOW ): / set the LED off de lay (1000); // wait for a second
4 Arduino程序结构:setup() 上电后setup()函数执行一次
Arduino程序结构:lopQ Blink I Arduino 0021 ⊙@回图四 Blnk§ Blink Turns on an LED on for one second, then off for one second, repeatedly This example code is in the public domain void setup[ // initialize the digital pin as an output // Pin 13 has an LED connected on most Arduino boards: pinMode (13, OUTPUT); loop函数一直循环运行 void loops digitalWrite(13, HIGH); / set the LED on delay(1000) // wait for a second digitalWrite(13, LOW); / set the LED off delay(1000); // wait for a second
5 Arduino程序结构:loop() loop()函数一直循环运行