Johan Kritzinger
/
FRDMKL25Z-ShiftBrite
A few classes to interface one or more ShiftBrite module to the FRDM KL25Z.
Diff: sbDriver.h
- Revision:
- 5:aa0424f31fa1
- Parent:
- 4:d2f8ddb423e2
--- a/sbDriver.h Wed Aug 20 09:26:42 2014 +0000 +++ b/sbDriver.h Thu Aug 21 04:04:49 2014 +0000 @@ -218,16 +218,16 @@ /**shiftLeft() * is used to shift the whole display colours one step left. -* A blank dot is shifted in. +* A blank dot is shifted in unless a colour is given in the argument. * @code for(loop=0; loop !=NumOfLeds; loop++){ - sbDisplay.shiftLeft(); + sbDisplay.shiftLeft();//or, to shift in a colour .shiftLeft(1000,200,0); sbDisplay.displayFrame(); wait(0.2); } * @endcode */ - void shiftLeft();//info shifted out is lost + void shiftLeft(unsigned short int inR=0,unsigned short int inG=0,unsigned short int inB=0);//info shifted out is lost /**rotateRight() * is used to shift the whole display colours one step right. @@ -245,16 +245,16 @@ /**shiftRight() * is used to shift the whole display colours one step right. -* A blank dot is shifted in. +* A blank dot is shifted in unless a colour is given as an argument. * @code for(loop=0; loop !=NumOfLeds; loop++){ - sbDisplay.shiftRight(); + sbDisplay.shiftRight(); // or, to feed in a colour sbDisplay.shiftRight(0,0XF0,0x30); sbDisplay.displayFrame(); wait(0.2); } * @endcode */ - void shiftRight();//info shifted out is lost + void shiftRight(unsigned short int inR=0,unsigned short int inG=0,unsigned short int inB=0);//info shifted out is lost /**Display output is turned enabled. */