Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit d1829d8

Browse files
authored
Merge pull request SHA2017-badge#105 from SHA2017-badge/rstd-ledsetstate
Remove deprecated led function
2 parents ce7d979 + c174c7e commit d1829d8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

esp32/modbadge.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -320,14 +320,6 @@ STATIC mp_obj_t badge_leds_send_data_(mp_uint_t n_args, const mp_obj_t *args) {
320320
}
321321
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(badge_leds_send_data_obj, 2,2 ,badge_leds_send_data_);
322322

323-
STATIC mp_obj_t badge_leds_set_state_(mp_uint_t n_args, const mp_obj_t *args) {
324-
mp_uint_t len;
325-
uint8_t *leds = (uint8_t *)mp_obj_str_get_data(args[0], &len);
326-
return mp_obj_new_int(badge_leds_send_data(leds, len));
327-
}
328-
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(badge_leds_set_state_obj, 1,1 ,badge_leds_set_state_);
329-
#endif
330-
331323
#if defined(PORTEXP_PIN_NUM_VIBRATOR) || defined(MPR121_PIN_NUM_VIBRATOR)
332324
STATIC mp_obj_t badge_vibrator_init_() {
333325
badge_vibrator_init();
@@ -365,7 +357,6 @@ STATIC const mp_rom_map_elem_t badge_module_globals_table[] = {
365357
{MP_OBJ_NEW_QSTR(MP_QSTR_leds_enable), (mp_obj_t)&badge_leds_enable_obj},
366358
{MP_OBJ_NEW_QSTR(MP_QSTR_leds_disable), (mp_obj_t)&badge_leds_disable_obj},
367359
{MP_OBJ_NEW_QSTR(MP_QSTR_leds_send_data), (mp_obj_t)&badge_leds_send_data_obj},
368-
{MP_OBJ_NEW_QSTR(MP_QSTR_leds_set_state), (mp_obj_t)&badge_leds_set_state_obj},
369360
#endif
370361

371362
#if defined(PORTEXP_PIN_NUM_VIBRATOR) || defined(MPR121_PIN_NUM_VIBRATOR)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy