View i2c_test.c
EEPROM_read(0, &rdBuffer[0], address, rdSize, pCallback);
EEPROM_write(0, wrBuffer, address, 2, wCallback);
View line_count.c
#define BIT_LEN 7
float line_value(int line) {
int i;
int value = 0, count = 0;
for(i=0; i < BIT_LEN; ++i) {
int mask = (1 << (i));
if((line & (mask)) == (mask)) {
value += i:
count++;