Arduino Spooky Projects Class 2.pdf

(5846 KB) Pobierz
Spooky Projects
Introduction to Microcontrollers with Arduino
Class 2
14 Oct 2006 - machineproject - Tod E. Kurt
What’s for Today
Reading buttons
Reading analog values (knobs and photocells)
Detecting the dark
More complex LED circuits
Also, any questions about last week?
Or about stuff on the Arduino site?
Recap: Blinky LED
Recap: Programming
Edit
Compile
Reset
Upload
Known Good
Configuration
Rule #1 of experimenting:
Before trying anything new,
Get back to a known working state
So let’s spend a few minutes & get “led_blink” working again
Get your entire edit->compile->upload->run working
Even if it becomes so second nature to you that you feel you shouldn’t need to, do it anyway.
Especially when mysterious problems arise, revert to a known state
Zgłoś jeśli naruszono regulamin