Skip to content

Commit ee55363

Browse files
committed
Merge remote-tracking branch 'adafruit/main' into rpi
2 parents a55c2ae + 153ff60 commit ee55363

31 files changed

+978
-45
lines changed

locale/circuitpython.pot

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ msgstr ""
574574

575575
#: shared-bindings/displayio/Display.c
576576
#: shared-bindings/framebufferio/FramebufferDisplay.c
577+
#: shared-bindings/is31fl3741/is31fl3741.c
577578
#: shared-bindings/rgbmatrix/RGBMatrix.c
578579
msgid "Brightness must be 0-1.0"
579580
msgstr ""
@@ -1461,6 +1462,10 @@ msgstr ""
14611462
msgid "Key must be 16, 24, or 32 bytes long"
14621463
msgstr ""
14631464

1465+
#: shared-module/is31fl3741/is31fl3741.c
1466+
msgid "LED mappings must match display size"
1467+
msgstr ""
1468+
14641469
#: py/compile.c
14651470
msgid "LHS of keyword arg must be an id"
14661471
msgstr ""
@@ -2085,6 +2090,10 @@ msgstr ""
20852090
msgid "Sample rate too high. It must be less than %d"
20862091
msgstr ""
20872092

2093+
#: shared-bindings/is31fl3741/is31fl3741.c
2094+
msgid "Scale dimensions must divide by 3"
2095+
msgstr ""
2096+
20882097
#: ports/nrf/common-hal/_bleio/Adapter.c
20892098
msgid "Scan already in progess. Stop with stop_scan."
20902099
msgstr ""
@@ -2342,7 +2351,7 @@ msgstr ""
23422351
msgid "Unable to create lock"
23432352
msgstr ""
23442353

2345-
#: shared-module/displayio/I2CDisplay.c
2354+
#: shared-module/displayio/I2CDisplay.c shared-module/is31fl3741/is31fl3741.c
23462355
#, c-format
23472356
msgid "Unable to find I2C Display at %x"
23482357
msgstr ""
@@ -4453,6 +4462,7 @@ msgstr ""
44534462
msgid "width must be from 2 to 8 (inclusive), not %d"
44544463
msgstr ""
44554464

4465+
#: shared-bindings/is31fl3741/is31fl3741.c
44564466
#: shared-bindings/rgbmatrix/RGBMatrix.c
44574467
msgid "width must be greater than zero"
44584468
msgstr ""

main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ STATIC void __attribute__ ((noinline)) run_boot_py(safe_mode_t safe_mode) {
678678
FATFS *fs = &vfs->fatfs;
679679

680680
boot_output = NULL;
681-
bool write_boot_output = (common_hal_mcu_processor_get_reset_reason() == RESET_REASON_POWER_ON);
681+
bool write_boot_output = true;
682682
FIL boot_output_file;
683683
if (f_open(fs, &boot_output_file, CIRCUITPY_BOOT_OUTPUT_FILE, FA_READ) == FR_OK) {
684684
char *file_contents = m_new(char, boot_text.alloc);
@@ -858,7 +858,11 @@ int __attribute__((used)) main(void) {
858858
serial_write_compressed(translate("soft reboot\n"));
859859
}
860860
first_run = false;
861-
skip_repl = run_code_py(safe_mode);
861+
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
862+
skip_repl = run_code_py(safe_mode);
863+
} else {
864+
skip_repl = false;
865+
}
862866
} else if (exit_code != 0) {
863867
break;
864868
}

ports/nrf/boards/microbit_v2/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CIRCUITPY_BUILTINS_POW3=0
1313
CIRCUITPY_BUSDEVICE = 0
1414
CIRCUITPY_COUNTIO = 0
1515
CIRCUITPY_DISPLAYIO = 0
16+
CIRCUITPY_IS31FL3741 = 0
1617
CIRCUITPY_FRAMEBUFFERIO = 0
1718
CIRCUITPY_FREQUENCYIO = 0
1819
CIRCUITPY_I2CPERIPHERAL = 0

ports/nrf/boards/pca10100/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CIRCUITPY_DISPLAYIO = 0
1919
CIRCUITPY_FRAMEBUFFERIO = 0
2020
CIRCUITPY_FREQUENCYIO = 0
2121
CIRCUITPY_I2CPERIPHERAL = 0
22+
CIRCUITPY_IS31FL3741 = 0
2223
CIRCUITPY_JSON = 0
2324
CIRCUITPY_KEYPAD = 0
2425
CIRCUITPY_MSGPACK = 0

ports/nrf/boards/simmel/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ CIRCUITPY_DISPLAYIO = 0
2222
CIRCUITPY_ERRNO = 0
2323
CIRCUITPY_FRAMEBUFFERIO = 0
2424
CIRCUITPY_GETPASS = 0
25+
CIRCUITPY_IS31FL3741 = 0
2526
CIRCUITPY_KEYPAD = 0
2627
CIRCUITPY_MSGPACK = 0
2728
CIRCUITPY_NEOPIXEL_WRITE = 0

ports/nrf/mpconfigport.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ CIRCUITPY_BLEIO ?= 1
3232
# No I2CPeripheral implementation
3333
CIRCUITPY_I2CPERIPHERAL = 0
3434

35+
CIRCUITPY_IS31FL3741 ?= 1
36+
3537
CIRCUITPY_RTC ?= 1
3638

3739
# frequencyio not yet implemented

py/circuitpy_defns.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ endif
212212
ifeq ($(CIRCUITPY_IPADDRESS),1)
213213
SRC_PATTERNS += ipaddress/%
214214
endif
215+
ifeq ($(CIRCUITPY_IS31FL3741),1)
216+
SRC_PATTERNS += is31fl3741/%
217+
endif
215218
ifeq ($(CIRCUITPY_KEYPAD),1)
216219
SRC_PATTERNS += keypad/%
217220
endif
@@ -551,6 +554,8 @@ SRC_SHARED_MODULE_ALL = \
551554
imagecapture/ParallelImageCapture.c \
552555
ipaddress/IPv4Address.c \
553556
ipaddress/__init__.c \
557+
is31fl3741/IS31FL3741.c \
558+
is31fl3741/__init__.c \
554559
keypad/__init__.c \
555560
keypad/Event.c \
556561
keypad/EventQueue.c \

py/circuitpy_mpconfig.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ CFLAGS += -DCIRCUITPY_IMAGECAPTURE=$(CIRCUITPY_IMAGECAPTURE)
247247
CIRCUITPY_IPADDRESS ?= $(CIRCUITPY_WIFI)
248248
CFLAGS += -DCIRCUITPY_IPADDRESS=$(CIRCUITPY_IPADDRESS)
249249

250+
CIRCUITPY_IS31FL3741 ?= 0
251+
CFLAGS += -DCIRCUITPY_IS31FL3741=$(CIRCUITPY_IS31FL3741)
252+
250253
CIRCUITPY_JSON ?= $(CIRCUITPY_FULL_BUILD)
251254
CFLAGS += -DCIRCUITPY_JSON=$(CIRCUITPY_JSON)
252255

shared-bindings/bitmaptools/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(bitmaptools_readinto_obj, 0, bitmaptools_readinto);
664664
//| """The Floyd-Stenberg dither"""
665665
//|
666666
MAKE_ENUM_VALUE(bitmaptools_dither_algorithm_type, dither_algorithm, Atkinson, DITHER_ALGORITHM_ATKINSON);
667-
MAKE_ENUM_VALUE(bitmaptools_dither_algorithm_type, dither_algorithm, FloydStenberg, DITHER_ALGORITHM_ATKINSON);
667+
MAKE_ENUM_VALUE(bitmaptools_dither_algorithm_type, dither_algorithm, FloydStenberg, DITHER_ALGORITHM_FLOYD_STENBERG);
668668

669669
MAKE_ENUM_MAP(bitmaptools_dither_algorithm) {
670670
MAKE_ENUM_MAP_ENTRY(dither_algorithm, Atkinson),

0 commit comments

Comments
 (0)