]> git.piffa.net Git - arduino/blob - books/ArduinoNextSteps-master/ArduinoNextSteps/sketch_04_10_direct_read/sketch_04_10_direct_read.ino
first commit
[arduino] / books / ArduinoNextSteps-master / ArduinoNextSteps / sketch_04_10_direct_read / sketch_04_10_direct_read.ino
1 // sketch_04_010_direct_read
2
3 byte state = 0;
4
5 void setup()
6 {
7   DDRB = B00000000; // all inputs
8   Serial.begin(9600);
9 }
10
11 void loop()
12 {
13   Serial.println(PINB, 2);
14   delay(1000);
15 }
16
17