Little-Wire
 All Classes Functions Groups Pages
SOFT_PWM

Software PWM functions. Designed to be used with RGB LEDs. More...

Functions

void softPWM_state (littleWire *lwHandle, unsigned char state)
 
void softPWM_write (littleWire *lwHandle, unsigned char ch1, unsigned char ch2, unsigned char ch3)
 

Detailed Description

Software PWM functions. Designed to be used with RGB LEDs.

Function Documentation

void softPWM_state ( littleWire *  lwHandle,
unsigned char  state 
)

Sets the state of the softPWM module

Parameters
lwHandlelittleWire device pointer
stateState of the softPWM module ( ENABLE or DISABLE )
Returns
(none)

Definition at line 359 of file littleWire.c.

void softPWM_write ( littleWire *  lwHandle,
unsigned char  ch1,
unsigned char  ch2,
unsigned char  ch3 
)

Updates the values of softPWM modules

Parameters
lwHandlelittleWire device pointer
ch1Value of channel 1 - PIN4
ch2Value of channel 2 - PIN1
ch3Value of channel 3 - PIN2
Returns
(none)

Definition at line 364 of file littleWire.c.