Export to MBED Studio for DISCO Board

Dependencies:   mbed

main.cpp

Committer:
tgrosch
Date:
2020-10-25
Revision:
1:8567a29d4699
Parent:
0:62b846b3988a
Child:
2:f30187bb3fbd

File content as of revision 1:8567a29d4699:

#include "mbed.h"
 
// Read temperature from LM75BD

I2C i2c(D14, D15);
Serial pc(SERIAL_TX, SERIAL_RX); //TODo fice this pc host iissue

#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) {

    }
}