Skip to content

Commit c6a15f7

Browse files
jerryneedelltannewt
authored andcommitted
esp8266: add neopixel_write - remove neopixel.py (adafruit#339)
For ESP8266, remove frozen module neopixel.py and add neopixel_write to mpconfigport.h. Use [Adafruit_CircuitPython_Neopixel/neopixel.py](https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel) instead.
1 parent e2ce87e commit c6a15f7

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

esp8266/modules/neopixel.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

esp8266/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ extern const struct _mp_obj_module_t busio_module;
171171
extern const struct _mp_obj_module_t bitbangio_module;
172172
extern const struct _mp_obj_module_t time_module;
173173
extern const struct _mp_obj_module_t multiterminal_module;
174+
extern const struct _mp_obj_module_t neopixel_write_module;
174175

175176
#define MICROPY_PORT_BUILTIN_MODULES \
176177
{ MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \
@@ -191,6 +192,7 @@ extern const struct _mp_obj_module_t multiterminal_module;
191192
{ MP_OBJ_NEW_QSTR(MP_QSTR_random), (mp_obj_t)&random_module }, \
192193
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&time_module }, \
193194
{ MP_OBJ_NEW_QSTR(MP_QSTR_multiterminal), (mp_obj_t)&multiterminal_module }, \
195+
{ MP_OBJ_NEW_QSTR(MP_QSTR_neopixel_write),(mp_obj_t)&neopixel_write_module }, \
194196

195197
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
196198
{ MP_ROM_QSTR(MP_QSTR_json), MP_ROM_PTR(&mp_module_ujson) }, \

0 commit comments

Comments
 (0)