Skip to content

Commit f39bc92

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 f39bc92

File tree

27 files changed

+1006
-79
lines changed

27 files changed

+1006
-79
lines changed

locale/circuitpython.pot

Lines changed: 38 additions & 4 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
@@ -470,6 +471,10 @@ msgstr ""
470471
msgid "Address must be %d bytes long"
471472
msgstr ""
472473

474+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
475+
msgid "Address out of range"
476+
msgstr ""
477+
473478
#: ports/espressif/common-hal/memorymap/AddressRange.c
474479
#: ports/nordic/common-hal/memorymap/AddressRange.c
475480
#: ports/raspberrypi/common-hal/memorymap/AddressRange.c
@@ -689,6 +694,10 @@ msgstr ""
689694
msgid "Buffer must be a multiple of %d bytes"
690695
msgstr ""
691696

697+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
698+
msgid "Buffer slice cannot be empty"
699+
msgstr ""
700+
692701
#: shared-bindings/_bleio/PacketBuffer.c
693702
#, c-format
694703
msgid "Buffer too short by %d bytes"
@@ -834,10 +843,6 @@ msgstr ""
834843
msgid "Clock unit in use"
835844
msgstr ""
836845

837-
#: ports/espressif/common-hal/mipidsi/Display.c
838-
msgid "Color depth must be 16 or 24"
839-
msgstr ""
840-
841846
#: shared-bindings/_bleio/Connection.c
842847
msgid ""
843848
"Connection has been disconnected and can no longer be used. Create a new "
@@ -1157,10 +1162,18 @@ msgstr ""
11571162
msgid "I/O operation on closed file"
11581163
msgstr ""
11591164

1165+
#: ports/zephyr-cp/common-hal/zephyr_i2c/I2C.c
1166+
msgid "I2C configuration failed"
1167+
msgstr ""
1168+
11601169
#: ports/stm/common-hal/busio/I2C.c
11611170
msgid "I2C init error"
11621171
msgstr ""
11631172

1173+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
1174+
msgid "I2C lock required"
1175+
msgstr ""
1176+
11641177
#: ports/raspberrypi/common-hal/busio/I2C.c
11651178
#: ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c
11661179
msgid "I2C peripheral in use"
@@ -1271,6 +1284,7 @@ msgstr ""
12711284
#: ports/espressif/common-hal/_bleio/Service.c
12721285
#: ports/espressif/common-hal/espulp/ULP.c
12731286
#: ports/espressif/common-hal/microcontroller/Processor.c
1287+
#: ports/espressif/common-hal/mipidsi/Display.c
12741288
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
12751289
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
12761290
#: ports/raspberrypi/bindings/picodvi/Framebuffer.c
@@ -1310,6 +1324,10 @@ msgstr ""
13101324
msgid "Invalid BSSID"
13111325
msgstr ""
13121326

1327+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
1328+
msgid "Invalid I2C device name"
1329+
msgstr ""
1330+
13131331
#: shared-bindings/wifi/Radio.c
13141332
msgid "Invalid MAC address"
13151333
msgstr ""
@@ -1326,6 +1344,10 @@ msgstr ""
13261344
msgid "Invalid bits per value"
13271345
msgstr ""
13281346

1347+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
1348+
msgid "Invalid buffer slice"
1349+
msgstr ""
1350+
13291351
#: shared-module/os/getenv.c
13301352
#, c-format
13311353
msgid "Invalid byte %.*s"
@@ -1348,11 +1370,19 @@ msgstr ""
13481370
msgid "Invalid hex password"
13491371
msgstr ""
13501372

1373+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
1374+
msgid "Invalid in_buffer slice"
1375+
msgstr ""
1376+
13511377
#: ports/espressif/common-hal/wifi/Radio.c
13521378
#: ports/zephyr-cp/common-hal/wifi/Radio.c
13531379
msgid "Invalid multicast MAC address"
13541380
msgstr ""
13551381

1382+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
1383+
msgid "Invalid out_buffer slice"
1384+
msgstr ""
1385+
13561386
#: ports/espressif/common-hal/espidf/__init__.c
13571387
msgid "Invalid size"
13581388
msgstr ""
@@ -1940,6 +1970,10 @@ msgstr ""
19401970
msgid "Random number generation error"
19411971
msgstr ""
19421972

1973+
#: ports/zephyr-cp/bindings/zephyr_i2c/I2C.c
1974+
msgid "Read length must be at least 1"
1975+
msgstr ""
1976+
19431977
#: shared-bindings/_bleio/__init__.c
19441978
#: shared-bindings/memorymonitor/AllocationSize.c
19451979
#: shared-bindings/pulseio/PulseIn.c shared-module/bitmaptools/__init__.c

0 commit comments

Comments
 (0)