Skip to content

Commit 4c6974f

Browse files
committed
Update hookup comments on examples 3 and 6
1 parent 7870082 commit 4c6974f

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

examples/Example3_AdvancedI2C/Example3_AdvancedI2C.ino

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
ADR1 to GND, and ADR2 to GND.
1818
1919
Hardware Connections:
20-
Plug the SparkFun Qwiic EEPROM to an Uno, Artemis, or other Qwiic equipped board
20+
I used an Artemis for this example. Make sure to connect the PTH of Qwiic EEPROM to the pins of the seconday I2C bus.
21+
22+
pin 0 on Artemis RedBoard = SDA on Qwiic EEPROM
23+
pin 6 = SCL
24+
GND to GND
25+
3.3V to 3.3V
26+
2127
Load this sketch
2228
Open output window at 115200bps
2329
*/
@@ -32,11 +38,12 @@ void setup()
3238
Serial.begin(115200);
3339
delay(10);
3440
Serial.println("I2C EEPROM example");
35-
36-
Wire.begin();
41+
42+
// Wire1.setClock(400000); //set I2C communication to 400kHz
43+
Wire1.begin();
3744

3845
#define EEPROM_ADDRESS 0b1010001 //0b1010(A2 A1 A0): A standard I2C EEPROM with the ADR0 bit set to VCC
39-
46+
4047
//Connect to a EEPROM with ADR0 set to VCC and use the Wire1 hardware to talk to the EEPROM
4148
if (myMem.begin(EEPROM_ADDRESS, Wire1) == false) //And Uno will fail to compile here
4249
{

examples/Example6_UniversalProgrammer/Example6_UniversalProgrammer.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
MISO = DO
2222
MOSI = DI
2323
10 = CS
24+
GND = GND
25+
3.3V = VCC
2426
25-
Wire an EEPROM to the RedBoard:
27+
Connect Qwiic EEPROM with Qwiic cable
2628
27-
SDA on Artemis RedBoard = Pin 5 on EEPROM
28-
SCL = 6
29-
GND = 1/2/4/7
30-
3.3V = 3+/8
29+
To really test the full functionality of this example, make sure to load an SD card with a file
30+
named data.bin and some made up binary data.
3131
3232
Note: On larger EEPROMs, pin 3 must be tied to 3.3V. RTFM.
3333
@@ -362,4 +362,4 @@ void beginSD()
362362
}
363363

364364
Serial.println("SD card online");
365-
}
365+
}

0 commit comments

Comments
 (0)