TTK4155 Ping-pong project
|
Go to the source code of this file.
Functions | |
bool | EEPROM_save_score (int8_t data) |
Function to save highscore value to store. More... | |
unsigned char | EEPROM_read (unsigned int address) |
Read value from EEPROM address. More... | |
void | EEPROM_write (unsigned int address, unsigned char data) |
Write data to EEPROM address. More... | |
This is the eeprom header file.
unsigned char EEPROM_read | ( | unsigned int | address | ) |
Read value from EEPROM address.
address | Address to data |
Wait for complete of previous write
Start eeprom read by writing EERE
Return data from register
bool EEPROM_save_score | ( | int8_t | data | ) |
Function to save highscore value to store.
void EEPROM_write | ( | unsigned int | address, |
unsigned char | data | ||
) |
Write data to EEPROM address.
address | Address to data |
data | Data to store |