Skip to content

Commit b09c777

Browse files
authored
Merge pull request #5584 from gamblor21/is31
IS31FL3741 Framebuffer Driver
2 parents af2ac0a + 97032fd commit b09c777

File tree

20 files changed

+949
-2
lines changed

20 files changed

+949
-2
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 ""
@@ -1457,6 +1458,10 @@ msgstr ""
14571458
msgid "Key must be 16, 24, or 32 bytes long"
14581459
msgstr ""
14591460

1461+
#: shared-module/is31fl3741/is31fl3741.c
1462+
msgid "LED mappings must match display size"
1463+
msgstr ""
1464+
14601465
#: py/compile.c
14611466
msgid "LHS of keyword arg must be an id"
14621467
msgstr ""
@@ -2081,6 +2086,10 @@ msgstr ""
20812086
msgid "Sample rate too high. It must be less than %d"
20822087
msgstr ""
20832088

2089+
#: shared-bindings/is31fl3741/is31fl3741.c
2090+
msgid "Scale dimensions must divide by 3"
2091+
msgstr ""
2092+
20842093
#: ports/nrf/common-hal/_bleio/Adapter.c
20852094
msgid "Scan already in progess. Stop with stop_scan."
20862095
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 ""

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
@@ -209,6 +209,9 @@ endif
209209
ifeq ($(CIRCUITPY_IPADDRESS),1)
210210
SRC_PATTERNS += ipaddress/%
211211
endif
212+
ifeq ($(CIRCUITPY_IS31FL3741),1)
213+
SRC_PATTERNS += is31fl3741/%
214+
endif
212215
ifeq ($(CIRCUITPY_KEYPAD),1)
213216
SRC_PATTERNS += keypad/%
214217
endif
@@ -548,6 +551,8 @@ SRC_SHARED_MODULE_ALL = \
548551
imagecapture/ParallelImageCapture.c \
549552
ipaddress/IPv4Address.c \
550553
ipaddress/__init__.c \
554+
is31fl3741/IS31FL3741.c \
555+
is31fl3741/__init__.c \
551556
keypad/__init__.c \
552557
keypad/Event.c \
553558
keypad/EventQueue.c \

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ extern const struct _mp_obj_module_t nvm_module;
392392
// CIRCUITPY_I2CPERIPHERAL
393393
// CIRCUITPY_IMAGECAPTURE
394394
// CIRCUITPY_IPADDRESS
395+
// CIRCUITPY_IS31FL3741
395396
// CIRCUITPY_KEYPAD
396397
// CIRCUITPY_MATH
397398
// CIRCUITPY_MEMORYMONITOR

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

0 commit comments

Comments
 (0)