Skip to content

Commit 40b9d5b

Browse files
waiweng83Kong Wai Weng
and
Kong Wai Weng
authored
Add pin definitions for I2C1 on Cytron IRIV (#2916)
Co-authored-by: Kong Wai Weng <waiweng@cytron.io>
1 parent 07ea22d commit 40b9d5b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

variants/cytron_iriv_io_controller/pins_arduino.h

+7-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@
6464
#define PIN_SPI0_SS (21u)
6565

6666
// Wire
67-
#define PIN_WIRE0_SDA (16u)
68-
#define PIN_WIRE0_SCL (17u)
67+
#define __WIRE0_DEVICE i2c0
68+
#define PIN_WIRE0_SDA (16u)
69+
#define PIN_WIRE0_SCL (17u)
70+
71+
#define __WIRE1_DEVICE i2c1
72+
#define PIN_WIRE1_SDA (31u) // Not used.
73+
#define PIN_WIRE1_SCL (31u) // Not used.
6974

7075

7176

0 commit comments

Comments
 (0)