summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lcd.c
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-13 23:09:04 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-13 23:09:04 +0000
commitf5a0a7d2b30d390f03dd0b6f8866ec619d2c5ee3 (patch)
treeae93f78ed97e4d820150a7b0d8c026f94cfb790e /stm/lcd.c
parent189c8e1cc46896382b6d19da8b89a4cc4f7e3864 (diff)
parentca318bba0d97c66d8fb14a089d8fa269a0e1b424 (diff)
downloadmicropython-f5a0a7d2b30d390f03dd0b6f8866ec619d2c5ee3.tar.gz
micropython-f5a0a7d2b30d390f03dd0b6f8866ec619d2c5ee3.zip
Merge remote-tracking branch 'upstream/master' into containment
Diffstat (limited to 'stm/lcd.c')
-rw-r--r--stm/lcd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/stm/lcd.c b/stm/lcd.c
index 70d1a26423..82e42b779d 100644
--- a/stm/lcd.c
+++ b/stm/lcd.c
@@ -220,13 +220,13 @@ void lcd_init(void) {
// Python interface
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));
- rt_store_attr(m, qstr_from_str_static("set"), rt_make_function_2(lcd_pix_set));
- rt_store_attr(m, qstr_from_str_static("reset"), rt_make_function_2(lcd_pix_reset));
- rt_store_attr(m, qstr_from_str_static("show"), rt_make_function_0(lcd_pix_show));
- rt_store_attr(m, qstr_from_str_static("text"), rt_make_function_1(lcd_print));
+ rt_store_attr(m, qstr_from_str_static("lcd8"), rt_make_function_n(2, lcd_draw_pixel_8));
+ rt_store_attr(m, qstr_from_str_static("clear"), rt_make_function_n(0, lcd_pix_clear));
+ rt_store_attr(m, qstr_from_str_static("get"), rt_make_function_n(2, lcd_pix_get));
+ rt_store_attr(m, qstr_from_str_static("set"), rt_make_function_n(2, lcd_pix_set));
+ rt_store_attr(m, qstr_from_str_static("reset"), rt_make_function_n(2, lcd_pix_reset));
+ rt_store_attr(m, qstr_from_str_static("show"), rt_make_function_n(0, lcd_pix_show));
+ rt_store_attr(m, qstr_from_str_static("text"), rt_make_function_n(1, lcd_print));
rt_store_name(qstr_from_str_static("lcd"), m);
}