![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Export to MBED Studio for DISCO Board
Diff: main.cpp
- Revision:
- 0:62b846b3988a
- Child:
- 1:8567a29d4699
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Oct 25 00:58:24 2020 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" + +// Read temperature from LM75BD + +I2C i2c(D14, D15); +Serial pc(SERIAL_TX, SERIAL_RX); + +#include "OPT3101device.h" + +// main() runs in its own thread in the OS + +int main() +{ + host.printf("-------------------------------\r\n"); + host.printf("Starting Main Program Execution\r\n"); + host.printf("-------------------------------\r\n"); + + OPT3101::device dev; ///* Declared variable dev of class OPT3101::device + dev.resetInitAndViewData(3000, false); + while (true) { + + } +} \ No newline at end of file