mbed-os
Fork of mbed-os by
features/unsupported/tests/benchmarks/all/main.cpp
- Committer:
- xuaner
- Date:
- 2017-07-20
- Revision:
- 1:3deb71413561
- Parent:
- 0:f269e3021894
File content as of revision 1:3deb71413561:
#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; } } }