Closed rishabhkal closed 6 years ago
will look into this in the evening, ~10h from now. I thought i had covered this in unittest, but it could be wrong, will see and check
just to help you on your journey:
does that help you?
i can't help you otherwise. not before you give me more information to work with:
ok, will close for now, issue does not seem to be related to a possible bug reopen if needed
Got the DS2431 EEPROM Simulator code(in examples and without change) running on the Arduino UNO.
Tested it by reading the data from it using Arduino Mega. It Read the following data:
1) Data before writing anything to it
ADDR= 2D 0 0 31 24 DA 0 A5 Reading from EEPROM as bits:
2) Data when I write some data in it:
ADDR= 2D 0 0 31 24 DA 0 A5 Reading from EEPROM as bits
Notice that only first 16 bits can be written rest all have '1'. I think they must be in protected mode. My question is how can I write to the rest pages by removing the protected mode.
What do the following line work in the code?
auto ds2431 = DS2431(DS2431::family_code, 0x00, 0x00, 0x31, 0x24, 0xDA, 0x00);