1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
tv44led_example/tmk_core/tool/mbed/mbed-sdk/libraries/tests/benchmarks/all/main.cpp
di0ib 87e7029039 Upload
Initial upload
2016-07-08 09:13:28 -10:00

20 lines
314 B
C++

#include "mbed.h"
DigitalOut out(p5);
#if defined(TARGET_LPC1114)
AnalogIn in(p20);
#else
AnalogIn in(p19);
#endif
volatile float w, x, y, z;
int main() {
while(1) {
z = x * y / w;
printf("Hello World %d %f\n", out.read(), z);
if(in > 0.5) {
out = !out;
}
}
}