Naresh Krish
/
itracker-mbed-os-example-opt3001
Sample program on how to use the OPT3001 sensor on the RAKWirelss iTracker module
Diff: main.cpp
- Revision:
- 0:33cb2fa095df
diff -r 000000000000 -r 33cb2fa095df main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 12 05:06:24 2018 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" + +// main() runs in its own thread in the OS +int main() { + read_DeviceID(); + while (true) { + wait(0.5); + read_sensor(); + } +} +