diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2021-08-11 15:14:46 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-08-19 22:50:32 +1000 |
commit | 39e9c0788fd533d8712d2b19ae93ab8efa56c599 (patch) | |
tree | afdec4da2d0b30e8808f980e30ce75b0ac2b697b /ports/esp8266/modesp.c | |
parent | 71f4faac2732d932dcc03bdbc9f80434e5757edb (diff) | |
download | micropython-39e9c0788fd533d8712d2b19ae93ab8efa56c599.tar.gz micropython-39e9c0788fd533d8712d2b19ae93ab8efa56c599.zip |
esp8266: Replace esp.neopixel with machine.bitstream.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'ports/esp8266/modesp.c')
-rw-r--r-- | ports/esp8266/modesp.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ports/esp8266/modesp.c b/ports/esp8266/modesp.c index 022447313c..eb79d20bc5 100644 --- a/ports/esp8266/modesp.c +++ b/ports/esp8266/modesp.c @@ -36,7 +36,6 @@ #include "user_interface.h" #include "mem.h" #include "ets_alt_task.h" -#include "espneopixel.h" #include "espapa102.h" #include "modmachine.h" @@ -199,16 +198,6 @@ STATIC mp_obj_t esp_check_fw(void) { } STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp_check_fw_obj, esp_check_fw); - -STATIC mp_obj_t esp_neopixel_write_(mp_obj_t pin, mp_obj_t buf, mp_obj_t is800k) { - mp_buffer_info_t bufinfo; - mp_get_buffer_raise(buf, &bufinfo, MP_BUFFER_READ); - esp_neopixel_write(mp_obj_get_pin_obj(pin)->phys_port, - (uint8_t *)bufinfo.buf, bufinfo.len, mp_obj_is_true(is800k)); - return mp_const_none; -} -STATIC MP_DEFINE_CONST_FUN_OBJ_3(esp_neopixel_write_obj, esp_neopixel_write_); - #if MICROPY_ESP8266_APA102 STATIC mp_obj_t esp_apa102_write_(mp_obj_t clockPin, mp_obj_t dataPin, mp_obj_t buf) { mp_buffer_info_t bufinfo; @@ -363,9 +352,6 @@ STATIC const mp_rom_map_elem_t esp_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_flash_erase), MP_ROM_PTR(&esp_flash_erase_obj) }, { MP_ROM_QSTR(MP_QSTR_flash_size), MP_ROM_PTR(&esp_flash_size_obj) }, { MP_ROM_QSTR(MP_QSTR_flash_user_start), MP_ROM_PTR(&esp_flash_user_start_obj) }, - #if MICROPY_ESP8266_NEOPIXEL - { MP_ROM_QSTR(MP_QSTR_neopixel_write), MP_ROM_PTR(&esp_neopixel_write_obj) }, - #endif #if MICROPY_ESP8266_APA102 { MP_ROM_QSTR(MP_QSTR_apa102_write), MP_ROM_PTR(&esp_apa102_write_obj) }, #endif |