Skip to content

Commit 7330c63

Browse files
committed
minimal changes to make espnow work
1 parent 59c3618 commit 7330c63

13 files changed

Lines changed: 203 additions & 55 deletions

File tree

locale/circuitpython.pot

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ msgstr ""
663663

664664
#: ports/espressif/boards/m5stack_core_basic/mpconfigboard.h
665665
#: ports/espressif/boards/m5stack_core_fire/mpconfigboard.h
666+
#: ports/espressif/boards/m5stack_stick_c/mpconfigboard.h
666667
msgid "Button A was pressed at start up.\n"
667668
msgstr ""
668669

@@ -917,6 +918,18 @@ msgstr ""
917918
msgid "ESP-IDF memory allocation failed"
918919
msgstr ""
919920

921+
#: ports/espressif/bindings/espnow/ESPNow.c
922+
msgid "ESPNow.recv(): buffer error"
923+
msgstr ""
924+
925+
#: ports/espressif/bindings/espnow/ESPNow.c
926+
msgid "ESPNow.recvinto(): Invalid argument"
927+
msgstr ""
928+
929+
#: ports/espressif/bindings/espnow/ESPNow.c
930+
msgid "ESPNow: bytes or bytearray wrong length"
931+
msgstr ""
932+
920933
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
921934
#: ports/atmel-samd/common-hal/ps2io/Ps2.c
922935
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
@@ -2429,6 +2442,10 @@ msgstr ""
24292442
msgid "addresses is empty"
24302443
msgstr ""
24312444

2445+
#: ports/espressif/bindings/espnow/ESPNow.c
2446+
msgid "an error occured"
2447+
msgstr ""
2448+
24322449
#: py/compile.c
24332450
msgid "annotation must be an identifier"
24342451
msgstr ""
@@ -2953,6 +2970,10 @@ msgid ""
29532970
"documentation for instructions."
29542971
msgstr ""
29552972

2973+
#: ports/espressif/bindings/espnow/ESPNow.c
2974+
msgid "espnow not inited"
2975+
msgstr ""
2976+
29562977
#: py/runtime.c
29572978
msgid "exceptions must derive from BaseException"
29582979
msgstr ""
@@ -3314,6 +3335,10 @@ msgstr ""
33143335
msgid "invalid format specifier"
33153336
msgstr ""
33163337

3338+
#: ports/espressif/bindings/espnow/ESPNow.c
3339+
msgid "invalid handler"
3340+
msgstr ""
3341+
33173342
#: shared-bindings/wifi/Radio.c
33183343
msgid "invalid hostname"
33193344
msgstr ""
@@ -3858,6 +3883,10 @@ msgstr ""
38583883
msgid "queue overflow"
38593884
msgstr ""
38603885

3886+
#: ports/espressif/bindings/espnow/ESPNow.c
3887+
msgid "rate option not supported"
3888+
msgstr ""
3889+
38613890
#: py/parse.c
38623891
msgid "raw f-strings are not supported"
38633892
msgstr ""
@@ -4153,6 +4182,10 @@ msgstr ""
41534182
msgid "unindent doesn't match any outer indent level"
41544183
msgstr ""
41554184

4185+
#: ports/espressif/bindings/espnow/ESPNow.c
4186+
msgid "unknown config param"
4187+
msgstr ""
4188+
41564189
#: py/objstr.c
41574190
#, c-format
41584191
msgid "unknown conversion specifier %c"

ports/espressif/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ CFLAGS += -isystem esp32-camera/driver/include
259259
CFLAGS += -isystem esp32-camera/conversions/include
260260
endif
261261

262+
ifneq ($(CIRCUITPY_ESPNOW),0)
263+
SRC_ESPNOW := $(wildcard bindings/espnow/*.c)
264+
SRC_C += $(SRC_ESPNOW)
265+
endif
266+
262267
ifneq ($(CIRCUITPY_ESPULP),0)
263268
SRC_ULP := \
264269
$(wildcard common-hal/espulp/*.c) \

0 commit comments

Comments
 (0)