Modification into 17th July New display demo code

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Ext_Demo_17July2017_newdis by SenseSemi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers i2c_dec.cpp Source File

i2c_dec.cpp

00001 #include "mbed.h"
00002 #define ADDR 0x70        // address of the I2C
00003 
00004 void i2c_spec()
00005 {
00006    I2C i2c(PTC11, PTC10);
00007    char dat[1];
00008    i2c.start();
00009    dat[0]=0xBB;   
00010    i2c.write(ADDR,dat,1);
00011    i2c.stop(); 
00012       
00013 }