Updated with option to return from BP screen to main screen, resolved screen navigation issues

Dependencies:   SDFileSystem TFTLCD_8bit ds3231 program mbed

Fork of poc_dis_5 by SenseSemi

i2c_dec.cpp

Committer:
nikitateggi
Date:
2017-03-01
Revision:
4:6bd81bb1790d
Parent:
1:8316c23ec6b9

File content as of revision 4:6bd81bb1790d:

#include "mbed.h"
#define ADDR 0x70        // address of the I2C

void i2c_spec()
{
   I2C i2c(PTC11, PTC10);
   char dat[1];
   i2c.start();
   dat[0]=0xBB;   
   i2c.write(ADDR,dat,1);
   i2c.stop(); 
      
}