Professional Documents
Culture Documents
USB
Port
Serial
Cryst Programmi
ng
al
Connector
5V
regulato Microcontroll
er
r
(Atmega
328)
Power
(7-12V DC
input) Analog
Power
Connector Inputs
Power USB
Input Programming Port
LED connected
to Pin 13
13
12
11
Power 10
Pin 9
8 Digital
7
6
Input/
A0 5 Output
A1 4
Analog A2 3
Input A3 2
A4 1
A5 0
void setup() {
Write the initialization
}
void loop() {
Write the repeated program
}
// comment
; at end of instruction
void setup() {
// initialize digital pin LED_BUILTIN (Pin 13) as an output.
pinMode(13, OUTPUT);
}
void loop() {
// the loop function runs over and over again forever