]> git.piffa.net Git - arduino/blob - books/ArduinoNextSteps-master/ArduinoNextSteps/sketch_04_09_square_ports/sketch_04_09_square_ports.ino
first commit
[arduino] / books / ArduinoNextSteps-master / ArduinoNextSteps / sketch_04_09_square_ports / sketch_04_09_square_ports.ino
1 // sketch_04_09_square_ports
2
3 byte state = 0;
4
5 void setup()
6 {
7   DDRB = B00000100;
8   while (true)
9   {
10     PORTB = B00000100;
11     PORTB = B00000000;
12   }
13 }
14
15 void loop()
16 {
17 }
18
19