Professional Documents
Culture Documents
*
* File: test_proj8.c
* Author name: Seth Cram
* Rev. Date: 11/02/2021
*
* Project Description:
* single byte read and single byte write
*
* Notes:
**********************************************************************/
#include <plib.h>
#include "CerebotMX7cK.h"
#include "I2C_EEPROM_LIB.h"
//macros:
#define TEST_VAL 0x67 //trivial num
//#define LEN 200 // used as a macro for IDE debugging purposes
//prototypes:
void system_init();
int main(){
//main testing:
//const unsigned int LEN = 256;
//const unsigned int mem_addr = 0x0341;
//const unsigned int mem_addr = 0x8012
//const unsigned int mem_addr = 0x9464 //should throw upper bounds error
//final test:
//const unsigned int mem_addr = 0x04FB;
//const unsigned int LEN = 200;
system_init();
initLCD();
startTick = ReadCoreTimer();
//output to LCD