Skip to content

Commit d567cce

Browse files
committed
Fix rv_init machine.Pin()
1 parent 5afed14 commit d567cce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

red_vision_examples/rv_init/bus_i2c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# specific board and configuration
66
i2c = I2C(
77
# id = 0,
8-
# sda = machine.Pin(0),
9-
# scl = machine.Pin(1),
8+
# sda = 0,
9+
# scl = 1,
1010
# freq = 400_000
1111
)

red_vision_examples/rv_init/bus_spi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
spi = SPI(
77
# id = 0,
88
baudrate = 24_000_000, # Use the fastest baudrate you can for best performance!
9-
# sck = machine.Pin(2),
10-
# mosi = machine.Pin(3),
11-
# miso = machine.Pin(4),
9+
# sck = 2,
10+
# mosi = 3,
11+
# miso = 4,
1212
# freq = 100_000
1313
)

0 commit comments

Comments
 (0)