Export to MBED Studio for DISCO Board

Dependencies:   mbed

main.cpp

Committer:
tgrosch
Date:
2020-10-25
Revision:
2:f30187bb3fbd
Parent:
1:8567a29d4699
Child:
3:4e641a32e087

File content as of revision 2:f30187bb3fbd:

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

//I2C i2c(D14, D15); // for NUCLEO board
I2C i2c(PB_6, PB_7); // for Disco 
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) {

    }
}