#include <avr/io.h>
#include "iohelp.h"
Go to the source code of this file.
Initialise the PWM system
Sets up PWM support. The library only supports hardware PWM on TIMER0 so you only get up to two PWM pins - PB0 and PB1.
Definition at line 17 of file pwm.c.
void pwmOut |
( |
PWM |
pwm, |
|
|
uint8_t |
value |
|
) |
| |
Set the value of a PWM pin
Set the output for a PWM pin.
- Parameters
-
pwm | the PWM output to change |
value | the value for the duty cycle ranging from 0 (fully off) to 255 (fully on). |
Definition at line 30 of file pwm.c.