summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lcd.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-03 00:10:22 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-03 00:10:22 +0000
commitaae7847508e2a9555ad3276c5cd4f42b2e66686c (patch)
tree9a33d436e9eacffdd518c96617651f9f3aef7d8c /stm/lcd.c
parent2870862601c7f4957d2710f8e7247de002cf67c4 (diff)
downloadmicropython-aae7847508e2a9555ad3276c5cd4f42b2e66686c.tar.gz
micropython-aae7847508e2a9555ad3276c5cd4f42b2e66686c.zip
Change old use of module creation to new proper use.
Diffstat (limited to 'stm/lcd.c')
-rw-r--r--stm/lcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/lcd.c b/stm/lcd.c
index cec5bf548d..9f5a157d05 100644
--- a/stm/lcd.c
+++ b/stm/lcd.c
@@ -220,7 +220,7 @@ void lcd_init(void) {
lcd_next_line = 0;
// Python interface
- mp_obj_t m = mp_module_new();
+ mp_obj_t m = mp_obj_new_module(qstr_from_str_static("lcd"));
rt_store_attr(m, qstr_from_str_static("lcd8"), rt_make_function_2(lcd_draw_pixel_8));
rt_store_attr(m, qstr_from_str_static("clear"), rt_make_function_0(lcd_pix_clear));
rt_store_attr(m, qstr_from_str_static("get"), rt_make_function_2(lcd_pix_get));