Commit c70637bc authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/modmachine: Timer: Add ONE_SHOT and PERIODIC symbolic constants.

parent 98b727c9
......@@ -100,6 +100,8 @@ STATIC const mp_map_elem_t esp_timer_locals_dict_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_deinit), (mp_obj_t)&esp_timer_deinit_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_init), (mp_obj_t)&esp_timer_init_obj },
// { MP_OBJ_NEW_QSTR(MP_QSTR_callback), (mp_obj_t)&esp_timer_callback_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_ONE_SHOT), MP_OBJ_NEW_SMALL_INT(false) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_PERIODIC), MP_OBJ_NEW_SMALL_INT(true) },
};
STATIC MP_DEFINE_CONST_DICT(esp_timer_locals_dict, esp_timer_locals_dict_table);
......
......@@ -155,3 +155,5 @@ Q(deinit)
Q(init)
Q(mode)
Q(period)
Q(ONE_SHOT)
Q(PERIODIC)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment