diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-01-05 03:14:50 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-01-05 03:14:50 +0100 |
commit | 4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a (patch) | |
tree | c01e5d0ab22eb618eef08ea85b9e233a87577d4c /src/pwm.h | |
parent | d9b9b3e71397a2da9e16cbee75c4954105237363 (diff) | |
download | analog_instruments-4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a.tar.gz |
fix commands, add fade
Diffstat (limited to 'src/pwm.h')
-rw-r--r-- | src/pwm.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -11,11 +11,14 @@ #include <avr/interrupt.h> #include <stdint.h> -extern uint8_t t0_ovf_cnt; -extern uint8_t pb0_thresh; +#define PWM_PINS 3 +#define PWM_DDR DDRB +#define PWM_PORT PORTB void pwm_init(); void pwm_set_pin(uint8_t _pin, uint8_t _duty); +void pwm_fade_pin(uint8_t _pin, uint8_t _duty); + #endif /* _PWM_H_ */ |