summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--stmhal/led.c4
-rw-r--r--stmhal/modpyb.c2
-rw-r--r--stmhal/qstrdefsport.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/stmhal/led.c b/stmhal/led.c
index 52a787eede..c00081ceab 100644
--- a/stmhal/led.c
+++ b/stmhal/led.c
@@ -204,7 +204,7 @@ STATIC mp_obj_t led_obj_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const
// check led number
if (!(0 <= led_id && led_id < NUM_LEDS)) {
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "Led %d does not exist", led_id));
+ nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "LED %d does not exist", led_id));
}
// return static led object
@@ -255,7 +255,7 @@ STATIC MP_DEFINE_CONST_DICT(led_locals_dict, led_locals_dict_table);
const mp_obj_type_t pyb_led_type = {
{ &mp_type_type },
- .name = MP_QSTR_Led,
+ .name = MP_QSTR_LED,
.print = led_obj_print,
.make_new = led_obj_make_new,
.locals_dict = (mp_obj_t)&led_locals_dict,
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c
index ef5e94afc5..ccf9fa53c6 100644
--- a/stmhal/modpyb.c
+++ b/stmhal/modpyb.c
@@ -281,7 +281,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_SD), (mp_obj_t)&pyb_sdcard_obj },
#endif
- { MP_OBJ_NEW_QSTR(MP_QSTR_Led), (mp_obj_t)&pyb_led_type },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_LED), (mp_obj_t)&pyb_led_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_I2C), (mp_obj_t)&pyb_i2c_type },
{ MP_OBJ_NEW_QSTR(MP_QSTR_USART), (mp_obj_t)&pyb_usart_type },
diff --git a/stmhal/qstrdefsport.h b/stmhal/qstrdefsport.h
index c6f67d5450..d502dae493 100644
--- a/stmhal/qstrdefsport.h
+++ b/stmhal/qstrdefsport.h
@@ -66,8 +66,8 @@ Q(PULL_NONE)
Q(PULL_UP)
Q(PULL_DOWN)
-// for Led object
-Q(Led)
+// for LED object
+Q(LED)
Q(on)
Q(off)
Q(toggle)