summaryrefslogtreecommitdiff
path: root/examples/Ports/SMDdemo/SMDdemo.ino
blob: 16b08cf75ad4cc3c21fe03282067d06da23b03f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// @dir SMDdemo
/// Test sketch for the SMD Kit - continuously toggle all the I/O lines.
// 2010-03-18 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php

byte value;

void setup () {
    UCSR0B = 0; // disable the UART
    for (byte i = 0; i < 20; ++i)
        pinMode(i, OUTPUT);
}

void loop () {
    value = !value;    
    for (byte i = 0; i < 20; ++i)
        digitalWrite(i, value);
    delay(500);
}