Insert Quote
if (command == 81 || command == 113) { //If command = "Qq" RTC1307 Memory Functions
Why not make it easy to read this code?
Ok np but this is just temp code to get it running
magnum1 = (Wire.read()); //magic number written before data write
state = (Wire.read()); // Read state data
counter = (Wire.read() << 8) + Wire.read(); // Read first byte shift left read second byte
magnum2 = (Wire.read()); // Read Magic number written after data write
(What's) (with) (all) (the) (parentheses) (?)
Ok fixed
if (magnum1 = magnum2){
Yeah, right. An assignment in the middle of an if statement...
Ah this is supposed to be
[code]
if (magnum1 != magnum2){
[/code]
Wire.write(zero); // not sure what this is for
Wire.write(0x20); // not sure what this is doing
Don't you think you should figure these out?
Well being new to the TWI I dont fully understand but I did find
Issue 527 : Stream-based Wire library doesn't accept zero
and the fix which I used.
and still after all of this I still cannot get this to upload unless I REM out the If statement.