Little-Wire
|
Functions | |
void | littleWire::pwm_init () |
void | littleWire::pwm_stop () |
void | littleWire::pwm_updateCompare (unsigned char channelA, unsigned char channelB) |
void | littleWire::pwm_updatePrescaler (unsigned int value) |
PWM Functions
void littleWire::pwm_init | ( | ) |
Initialize PWM module on the Little-Wire
void littleWire::pwm_stop | ( | ) |
De-Initialize PWM module on the Little-Wire
void littleWire::pwm_updateCompare | ( | unsigned char | channelA, |
unsigned char | channelB | ||
) |
Update the compare values of the PWM output pins. Resolution is 8 bit.
channelA | Compare value of PWMA pin |
channelB | Compare value of PWMB pin |
void littleWire::pwm_updatePrescaler | ( | unsigned int | value | ) |
Update the prescaler of the PWM module. Adjust this value according to your need for speed in PWM output. Default is 1024. Lower prescale means higher frequency PWM output.
value | Presecaler value (1024, 256, 64, 8 or 1) |