Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/stm/servo.h

6 lines
173 B
C
Raw Normal View History

Change object representation from 1 big union to individual structs. 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).
2013-12-21 18:17:45 +00:00
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);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 15ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API