@@ -812,36 +812,36 @@ int main(void) {
812812
813813 // add some functions to the python namespace
814814 {
815- rt_store_name (qstr_from_str_static ("help" ), rt_make_function_0 ( pyb_help ));
815+ rt_store_name (qstr_from_str_static ("help" ), rt_make_function_n ( 0 , pyb_help ));
816816
817817 mp_obj_t m = mp_obj_new_module (qstr_from_str_static ("pyb" ));
818- rt_store_attr (m , qstr_from_str_static ("info" ), rt_make_function_0 ( pyb_info ));
819- rt_store_attr (m , qstr_from_str_static ("sd_test" ), rt_make_function_0 ( pyb_sd_test ));
820- rt_store_attr (m , qstr_from_str_static ("stop" ), rt_make_function_0 ( pyb_stop ));
821- rt_store_attr (m , qstr_from_str_static ("standby" ), rt_make_function_0 ( pyb_standby ));
822- rt_store_attr (m , qstr_from_str_static ("source_dir" ), rt_make_function_1 ( pyb_source_dir ));
823- rt_store_attr (m , qstr_from_str_static ("main" ), rt_make_function_1 ( pyb_main ));
824- rt_store_attr (m , qstr_from_str_static ("sync" ), rt_make_function_0 ( pyb_sync ));
825- rt_store_attr (m , qstr_from_str_static ("gc" ), rt_make_function_0 ( pyb_gc ));
826- rt_store_attr (m , qstr_from_str_static ("delay" ), rt_make_function_1 ( pyb_delay ));
827- rt_store_attr (m , qstr_from_str_static ("led" ), rt_make_function_1 ( pyb_led ));
818+ rt_store_attr (m , qstr_from_str_static ("info" ), rt_make_function_n ( 0 , pyb_info ));
819+ rt_store_attr (m , qstr_from_str_static ("sd_test" ), rt_make_function_n ( 0 , pyb_sd_test ));
820+ rt_store_attr (m , qstr_from_str_static ("stop" ), rt_make_function_n ( 0 , pyb_stop ));
821+ rt_store_attr (m , qstr_from_str_static ("standby" ), rt_make_function_n ( 0 , pyb_standby ));
822+ rt_store_attr (m , qstr_from_str_static ("source_dir" ), rt_make_function_n ( 1 , pyb_source_dir ));
823+ rt_store_attr (m , qstr_from_str_static ("main" ), rt_make_function_n ( 1 , pyb_main ));
824+ rt_store_attr (m , qstr_from_str_static ("sync" ), rt_make_function_n ( 0 , pyb_sync ));
825+ rt_store_attr (m , qstr_from_str_static ("gc" ), rt_make_function_n ( 0 , pyb_gc ));
826+ rt_store_attr (m , qstr_from_str_static ("delay" ), rt_make_function_n ( 1 , pyb_delay ));
827+ rt_store_attr (m , qstr_from_str_static ("led" ), rt_make_function_n ( 1 , pyb_led ));
828828 rt_store_attr (m , qstr_from_str_static ("switch" ), (mp_obj_t )& pyb_switch_obj );
829- rt_store_attr (m , qstr_from_str_static ("servo" ), rt_make_function_2 ( pyb_servo_set ));
830- rt_store_attr (m , qstr_from_str_static ("pwm" ), rt_make_function_2 ( pyb_pwm_set ));
829+ rt_store_attr (m , qstr_from_str_static ("servo" ), rt_make_function_n ( 2 , pyb_servo_set ));
830+ rt_store_attr (m , qstr_from_str_static ("pwm" ), rt_make_function_n ( 2 , pyb_pwm_set ));
831831 rt_store_attr (m , qstr_from_str_static ("accel" ), (mp_obj_t )& pyb_mma_read_obj );
832832 rt_store_attr (m , qstr_from_str_static ("mma_read" ), (mp_obj_t )& pyb_mma_read_all_obj );
833833 rt_store_attr (m , qstr_from_str_static ("mma_mode" ), (mp_obj_t )& pyb_mma_write_mode_obj );
834- rt_store_attr (m , qstr_from_str_static ("hid" ), rt_make_function_1 ( pyb_hid_send_report ));
835- rt_store_attr (m , qstr_from_str_static ("time" ), rt_make_function_0 ( pyb_rtc_read ));
836- rt_store_attr (m , qstr_from_str_static ("rand" ), rt_make_function_0 ( pyb_rng_get ));
837- rt_store_attr (m , qstr_from_str_static ("Led" ), rt_make_function_1 ( pyb_Led ));
838- rt_store_attr (m , qstr_from_str_static ("Servo" ), rt_make_function_1 ( pyb_Servo ));
839- rt_store_attr (m , qstr_from_str_static ("I2C" ), rt_make_function_2 ( pyb_I2C ));
834+ rt_store_attr (m , qstr_from_str_static ("hid" ), rt_make_function_n ( 1 , pyb_hid_send_report ));
835+ rt_store_attr (m , qstr_from_str_static ("time" ), rt_make_function_n ( 0 , pyb_rtc_read ));
836+ rt_store_attr (m , qstr_from_str_static ("rand" ), rt_make_function_n ( 0 , pyb_rng_get ));
837+ rt_store_attr (m , qstr_from_str_static ("Led" ), rt_make_function_n ( 1 , pyb_Led ));
838+ rt_store_attr (m , qstr_from_str_static ("Servo" ), rt_make_function_n ( 1 , pyb_Servo ));
839+ rt_store_attr (m , qstr_from_str_static ("I2C" ), rt_make_function_n ( 2 , pyb_I2C ));
840840 rt_store_attr (m , qstr_from_str_static ("gpio" ), (mp_obj_t )& pyb_gpio_obj );
841- rt_store_attr (m , qstr_from_str_static ("Usart" ), rt_make_function_2 ( pyb_Usart ));
841+ rt_store_attr (m , qstr_from_str_static ("Usart" ), rt_make_function_n ( 2 , pyb_Usart ));
842842 rt_store_name (qstr_from_str_static ("pyb" ), m );
843843
844- rt_store_name (qstr_from_str_static ("open" ), rt_make_function_2 ( pyb_io_open ));
844+ rt_store_name (qstr_from_str_static ("open" ), rt_make_function_n ( 2 , pyb_io_open ));
845845 }
846846
847847 // print a message to the LCD
0 commit comments