Sample program on how to use the OPT3001 sensor on the RAKWirelss iTracker module

main.cpp

Committer:
knaresh89
Date:
2018-02-12
Revision:
0:33cb2fa095df

File content as of revision 0:33cb2fa095df:

#include "mbed.h"

// main() runs in its own thread in the OS
int main() {
    read_DeviceID();
    while (true) {
       wait(0.5);
       read_sensor();
    }
}