mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
Copied over 2 new pwm functions from @streamnsight to close #46. these 2 functions are untested, which is why i'm not updating the readme at the moment.
This commit is contained in:
@ -32,6 +32,9 @@ SOFTWARE.
|
||||
int pwm_start(const char *key, float duty, float freq, int polarity);
|
||||
int pwm_disable(const char *key);
|
||||
int pwm_set_frequency(const char *key, float freq);
|
||||
int pwm_set_period_ns(const char *key, unsigned long period_ns);
|
||||
int pwm_get_period_ns(const char *key, unsigned long *period_ns);
|
||||
int pwm_set_duty_cycle(const char *key, float duty);
|
||||
int pwm_set_pulse_width_ns(const char *key, unsigned long pulse_width_ns);
|
||||
int pwm_set_enable(const char *key, int enable);
|
||||
void pwm_cleanup(void);
|
||||
|
Reference in New Issue
Block a user