diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-13 19:50:05 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-13 19:50:05 +0000 |
commit | f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0 (patch) | |
tree | c512ba2f387febe7fa57c2e1bf52b6250d579e73 /stm/lcd.c | |
parent | f88a72a88e78ce1cfbd25f0cbf1fbff5e6fd43cb (diff) | |
download | micropython-f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0.tar.gz micropython-f62d33aa1dc5afad9abbaf257531bdc4b0fbfdc0.zip |
Consolidate rt_make_function_[0123] to rt_make_function_n.
Diffstat (limited to 'stm/lcd.c')
-rw-r--r-- | stm/lcd.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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); } |