Skip to content

Commit 98e330c

Browse files
committed
Make the 512k Qwiic EEPROM default in Ex1
1 parent cab5790 commit 98e330c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

examples/Example1_BasicReadWrite/Example1_BasicReadWrite.ino

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ void setup()
5656
//myMem.setMemorySizeBytes(2048);
5757

5858
// 24xx02 - 2048 bit / 256 bytes - 1 address byte, 8 byte page
59-
myMem.setAddressBytes(1);
60-
myMem.setPageSizeBytes(8);
61-
myMem.setMemorySizeBytes(256);
59+
//myMem.setAddressBytes(1);
60+
//myMem.setPageSizeBytes(8);
61+
//myMem.setMemorySizeBytes(256);
62+
63+
// 24xx512 - 524288 bit / 65536 bytes - 2 address bytes, 128 byte page
64+
myMem.setAddressBytes(2);
65+
myMem.setPageSizeBytes(128);
66+
myMem.setMemorySizeBytes(65536);
6267

6368
if (myMem.begin() == false)
6469
{

0 commit comments

Comments
 (0)