d99b05282d
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
6 lines
173 B
C
6 lines
173 B
C
void servo_init(void);
|
|
|
|
mp_obj_t pyb_servo_set(mp_obj_t port, mp_obj_t value);
|
|
mp_obj_t pyb_pwm_set(mp_obj_t period, mp_obj_t pulse);
|
|
mp_obj_t pyb_Servo(mp_obj_t servo_id);
|