Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Smoothie by
Pwm.h
00001 #ifndef _PWM_H 00002 #define _PWM_H 00003 00004 #include <stdint.h> 00005 00006 #include "Pin.h" 00007 #include "Module.h" 00008 00009 class Pwm : public Module, public Pin { 00010 public: 00011 Pwm(); 00012 00013 void on_module_load(void); 00014 uint32_t on_tick(uint32_t); 00015 00016 Pwm* max_pwm(int); 00017 int max_pwm(void); 00018 00019 void pwm(int); 00020 void set(bool); 00021 00022 int _max; 00023 int _pwm; 00024 int _sd_accumulator; 00025 bool _sd_direction; 00026 }; 00027 00028 #endif /* _PWM_H */
Generated on Tue Jul 12 2022 20:09:02 by
1.7.2
