Ted Grosch / Mbed 2 deprecated Nucleo_TOF_I2C

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002  
00003 // Read temperature from LM75BD
00004 
00005 I2C i2c(D14, D15);
00006 Serial pc(SERIAL_TX, SERIAL_RX); //TODo fice this pc host iissue
00007 
00008 #include "OPT3101device.h "
00009 
00010 // main() runs in its own thread in the OS
00011 
00012 int main()
00013 {
00014     host.printf("-------------------------------\r\n");
00015     host.printf("Starting Main Program Execution\r\n");
00016     host.printf("-------------------------------\r\n");
00017     
00018     OPT3101::device dev; ///* Declared variable dev of class OPT3101::device
00019     dev.resetInitAndViewData(3000, false);
00020     while (true) {
00021 
00022     }
00023 }