Dependents: cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more
Diff: features/unsupported/tests/benchmarks/mbed/main.cpp
- Revision:
- 0:b74591d5ab33
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/features/unsupported/tests/benchmarks/mbed/main.cpp Mon Dec 11 17:54:04 2017 +0000 @@ -0,0 +1,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; + } + } +}