mbed-os

Fork of mbed-os by erkin yucel

features/unsupported/tests/benchmarks/mbed/main.cpp

Committer:
elessair
Date:
2016-10-23
Revision:
0:f269e3021894

File content as of revision 0:f269e3021894:

#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;
        }
    }
}