Code does not work on Propeller Mini (solved)
iseries
Posts: 1,496
I have this code that work on all the other Propeller boards but not the Mini. I have tried the code on 3 different Mini boards and they all fail.
I have tried the code on an Activity Board, Activity Board WX, Flip, Project Board and even Badge WX. The code works on all of them.
So why does the code not work on the Propeller Mini?
Mike
I have tried the code on an Activity Board, Activity Board WX, Flip, Project Board and even Badge WX. The code works on all of them.
So why does the code not work on the Propeller Mini?
#include "simpletools.h" #define XSCL 28 #define XSDA 29 struct log { int magic; int last; }; char Buf[512]; i2c *mem; int i; int main() { printi("Starting\n"); mem = i2c_newbus(XSCL, XSDA, 0); i = i2c_in(mem, 0x50, 0, 2, Buf, 256); printi("read: %d\n", i); for (i=0;i<256;i++) { printi("%x ", Buf[i]); } Buf[0] = 0xff; Buf[1] = 0xfe; // i2c_out(mem, 0x50, 0, 2, Buf, 2); printi("\nDone\n"); while(1) { pause(1000); } }
Mike
Comments
This means that none of the EEPROM functions will work with this board as those functions do not use clock drive.
So "ee_getByte()" will not work with this board.
Mike