mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-11-09 17:04:38 -06:00
- add maix::peripheral::light::Light with on/off/is_on/set_duty/duty/pin/freq, exposed to MaixPy as maix.light.Light - MaixCAM2: drive the light by PWM and read maix_light_freq/maix_light_duty from /boot/configs (default 10000Hz/50%), warn when duty > 70% because long time high power running may cause the LED to age quickly - MaixCAM: keep GPIO on/off control - app_camera: use the new Light class instead of raw GPIO