Skip to content

Commit da50dfa

Browse files
committed
Add I2C support to the Zephyr builds
You cannot instantiate `zephyr_i2c.I2C()` because they are fixed by the board's device tree. All busses with status = "okay" are added to board with all of their labels as names. So, I2C() may be the same as I2C1() and ARDUINO_I2C(). Part of #9903.
1 parent 108860a commit da50dfa

File tree

27 files changed

+975
-82
lines changed

27 files changed

+975
-82
lines changed

locale/circuitpython.pot

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ msgid "%q in %q must be of type %q, not %q"
111111
msgstr ""
112112

113113
#: ports/espressif/common-hal/espulp/ULP.c
114+
#: ports/espressif/common-hal/mipidsi/Bus.c
114115
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
115116
#: ports/mimxrt10xx/common-hal/usb_host/Port.c
116117
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c
@@ -244,7 +245,8 @@ msgstr ""
244245
#: ports/nordic/common-hal/pulseio/PulseIn.c
245246
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
246247
#: ports/stm/common-hal/pulseio/PulseIn.c py/argcheck.c
247-
#: shared-bindings/canio/Match.c shared-bindings/time/__init__.c
248+
#: shared-bindings/bitmaptools/__init__.c shared-bindings/canio/Match.c
249+
#: shared-bindings/time/__init__.c
248250
msgid "%q out of range"
249251
msgstr ""
250252

@@ -834,10 +836,6 @@ msgstr ""
834836
msgid "Clock unit in use"
835837
msgstr ""
836838

837-
#: ports/espressif/common-hal/mipidsi/Display.c
838-
msgid "Color depth must be 16 or 24"
839-
msgstr ""
840-
841839
#: shared-bindings/_bleio/Connection.c
842840
msgid ""
843841
"Connection has been disconnected and can no longer be used. Create a new "
@@ -1119,8 +1117,9 @@ msgid ""
11191117
"Frequency must be 24, 150, 396, 450, 528, 600, 720, 816, 912, 960 or 1008 Mhz"
11201118
msgstr ""
11211119

1122-
#: shared-bindings/bitbangio/I2C.c shared-bindings/bitbangio/SPI.c
1123-
#: shared-bindings/busio/I2C.c shared-bindings/busio/SPI.c
1120+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c shared-bindings/bitbangio/I2C.c
1121+
#: shared-bindings/bitbangio/SPI.c shared-bindings/busio/I2C.c
1122+
#: shared-bindings/busio/SPI.c
11241123
msgid "Function requires lock"
11251124
msgstr ""
11261125

@@ -1271,6 +1270,7 @@ msgstr ""
12711270
#: ports/espressif/common-hal/_bleio/Service.c
12721271
#: ports/espressif/common-hal/espulp/ULP.c
12731272
#: ports/espressif/common-hal/microcontroller/Processor.c
1273+
#: ports/espressif/common-hal/mipidsi/Display.c
12741274
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
12751275
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
12761276
#: ports/raspberrypi/bindings/picodvi/Framebuffer.c

0 commit comments

Comments
 (0)