Skip to content

Commit 195a8a9

Browse files
committed
issues #4 - Wrong pins for I2C
1 parent 5059268 commit 195a8a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

gpio/i2c_demo/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This is a basic demonstration of reading/writing I2C protocol.
44
For this demo, we connect a I2C device to pins:
55
- 3V3 (3V3, pin 9) = VCC
66
- GND (GND, pin 18) = GND
7-
- SCL (C0, pin 15) = SCL
8-
- SDA (C1, pin 16) = SDA
7+
- SCL (C0, pin 16) = SCL
8+
- SDA (C1, pin 15) = SDA
99

1010

1111
## Installation Directions
@@ -28,7 +28,7 @@ These directions assume you are starting at the flipper desktop. If not, please
2828

2929
- NOTE: If your I2C device already has pull-up resistors, then you do not need to add them to your SCL and SDA lines.
3030

31-
- Connect an I2C device (like a BH1750) to pins 9 (3V3), 15 (SCL), 16 (SDA), 18 (GND).
31+
- Connect an I2C device (like a BH1750) to pins 9 (3V3), 16 (SCL), 15 (SDA), 18 (GND).
3232
- The message should change to "FOUND I2C DEVICE"
3333
- The next line should have the address of the I2C device.
3434
- If the device is a BH1750 then you should also see "WRITE/READ SUCCESS" and a value that changes with the brightness on the sensor.

gpio/i2c_demo/i2c_demo_app.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This is a basic demonstration of reading/writing I2C protocol.
66
For this demo, we connect a I2C device to pins:
77
- 3V3 (3V3, pin 9) = VCC
88
- GND (GND, pin 18) = GND
9-
- SCL (C0, pin 15) = SCL
10-
- SDA (C1, pin 16) = SDA
9+
- SCL (C0, pin 16) = SCL
10+
- SDA (C1, pin 15) = SDA
1111
*/
1212

1313
#include <furi.h>

0 commit comments

Comments
 (0)