Skip to content

Commit 7c6e890

Browse files
committed
enables displayio, terminalio, neopixel_write, pixelbuf, and micrpython native.
1 parent a055113 commit 7c6e890

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ports/stm/boards/swan_r5/mpconfigboard.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ CIRCUITPY_NVM = 0
3636

3737
CIRCUITPY_ANALOGIO = 1
3838
CIRCUITPY_BUSIO = 1
39-
CIRCUITPY_NEOPIXEL_WRITE = 0
39+
CIRCUITPY_NEOPIXEL_WRITE = 1
4040
CIRCUITPY_PULSEIO = 1
4141
CIRCUITPY_PWMIO = 1
4242
CIRCUITPY_AUDIOPWMIO = 1
4343
CIRCUITPY_CANIO = 0
4444
CIRCUITPY_AUDIOBUSIO = 0
4545
CIRCUITPY_I2CPERIPHERAL = 0
4646
# Requires SPI, PulseIO (stub ok):
47-
CIRCUITPY_DISPLAYIO = 0
47+
CIRCUITPY_DISPLAYIO = 1
4848

4949
# These modules are implemented in shared-module/ - they can be included in
5050
# any port once their prerequisites in common-hal are complete.
5151
# Requires DigitalIO:
5252
CIRCUITPY_BITBANGIO = 1
5353
# Requires neopixel_write or SPI (dotstar)
54-
CIRCUITPY_PIXELBUF = 0
54+
CIRCUITPY_PIXELBUF = 1
5555
# Requires OS
5656
CIRCUITPY_RANDOM = 1
5757
# Requires Microcontroller
@@ -69,5 +69,7 @@ CIRCUITPY_BLEIO_HCI = 0
6969
CIRCUITPY_BLEIO = 0
7070
CIRCUITPY_BUSDEVICE = 0
7171
CIRCUITPY_KEYPAD = 1
72+
# RGBMATRIX requires protomatter support, which presently doesn't support the L4
7273
CIRCUITPY_RGBMATRIX = 0
7374
CIRCUITPY_RTC = 1
75+
CIRCUITPY_ENABLE_MPY_NATIVE = 1

ports/stm/common-hal/neopixel_write/__init__.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@
3030
#include "py/mphal.h"
3131
#include "py/runtime.h"
3232
#include "common-hal/microcontroller/Pin.h"
33+
#if CPY_STM32L4
34+
#include "stm32l4xx_hal.h"
35+
#include "stm32l4xx_ll_gpio.h"
36+
#else
3337
#include "stm32f4xx_hal.h"
3438
#include "stm32f4xx_ll_gpio.h"
39+
#endif
3540
#include "supervisor/port.h"
3641

3742
uint64_t next_start_raw_ticks = 0;

0 commit comments

Comments
 (0)