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
eeprom_pgm.cpp
- Committer:
- suhasini
- Date:
- 2017-03-30
- Revision:
- 5:a3ea7c82b7e1
- Parent:
- 4:6bd81bb1790d
File content as of revision 5:a3ea7c82b7e1:
#include "mbed.h" #include "eeprom.h" #include "eeprom_pgm.h" #include <stdio.h> Serial ec(USBTX, USBRX); // tx, rx EEPROM rom(PTC11, PTC10, 0x00, EEPROM::T24C32); void eprom_write(uint32_t address, int8_t data) { rom.write(address ,data); // write data into the address } int eprom_read(uint32_t address) // readng the data from the specified address { int8_t rdata; rom.read(address, rdata); ec.printf("Read back value=%u\n", rdata); return rdata; }