summaryrefslogtreecommitdiff
path: root/tmk_core/tool/mbed/mbed-sdk/libraries/tests/benchmarks/mbed/main.cpp
blob: aa99784a3b1abe82dc35a93a0a8cb893a5c21f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "mbed.h"

DigitalOut out(p5);
#if defined(TARGET_LPC1114)
AnalogIn in(p20);
#else
AnalogIn in(p19);
#endif

int main() {
    while(1) {
        if(in > 0.5) {
            out = !out;
        }
    }
}