Little-Wire
Functions
PWM

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)

Detailed Description

PWM Functions


Function Documentation

Initialize PWM module on the Little-Wire

Returns:
(none)

De-Initialize PWM module on the Little-Wire

Returns:
(none)
void littleWire::pwm_updateCompare ( unsigned char  channelA,
unsigned char  channelB 
)

Update the compare values of the PWM output pins. Resolution is 8 bit.

Parameters:
channelACompare value of PWMA pin
channelBCompare value of PWMB pin
Returns:
(none)
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.

Parameters:
valuePresecaler value (1024, 256, 64, 8 or 1)
Returns:
(none)
 All Classes Functions