MHVLib  20111227
An efficiency oriented runtime library for AVR microcontrollers
A:/eclipse/mhvlib/MHV_WS2801.h File Reference
#include <MHV_RGB.h>
#include <MHV_GammaCorrect.h>
#include <MHV_Shifter.h>

Go to the source code of this file.

Classes

class  MHV_WS2801

Defines

#define MHV_RGB_ORDER   5
#define MHV_SHIFT_WRITECLOCK
#define MHV_SHIFT_WRITEDATA
#define MHV_WS2801_CREATE(__mhvObjectName, __mhvLength)

Define Documentation

#define MHV_RGB_ORDER   5

Definition at line 30 of file MHV_WS2801.h.

#define MHV_SHIFT_WRITECLOCK

Definition at line 36 of file MHV_WS2801.h.

#define MHV_SHIFT_WRITEDATA

Definition at line 37 of file MHV_WS2801.h.

#define MHV_WS2801_CREATE (   __mhvObjectName,
  __mhvLength 
)
Value:
MHV_RGB __mhvObjectName ## _Buffer[__mhvLength]; \
        MHV_SHIFTER_CLOCKED_RISING_CREATE(__mhvObjectName ## _Shifter); \
        MHV_WS2801 __mhvObjectName(__mhvObjectName ## _Buffer, __mhvLength, __mhvObjectName ## _Shifter);

Create a new WS2801 object to control a string of LED drivers The MHV_SHIFT_WRITECLOCK & MHV_SHIFT_WRITEDATA macros should be defined in advance

Parameters:
__mhvObjectNamethe variable name of the object
__mhvLengththe number of chips in the string

Definition at line 48 of file MHV_WS2801.h.