RSeries astromech firmware
TeecesFrontLogics Class Reference

#include <dome/TeecesLogics.h>

Detailed Description

Teeces Front Logics Device.

Controller class for Teeces style Front Logics.

Example sketch:

#include "ReelTwo.h"
#include "dome/TeecesPSI.h"
#include "dome/TeecesLogics.h"
LedControlMAX7221<4> rearChain(6, 7, 8);
TeecesRLD RLD(rearChain);
TeecesPSI rearPSI(rearChain);
LedControlMAX7221<3> frontChain(9, 10, 11);
TeecesTFLD TFLD(frontChain);
TeecesBFLD BFLD(frontChain);
TeecesPSI frontPSI(frontChain);
void setup()
{
REELTWO_READY();
SetupEvent::ready();
}
void loop()
{
AnimatedEvent::process();
}

For further information on the hardware:

https://astromech.net/forums/showthread.php?28369-TEECE-s-Light-Kits-(Assembled)-BC-Approved-255-(May-2016)-Open

+ Inheritance diagram for TeecesFrontLogics:
+ Collaboration diagram for TeecesFrontLogics:

Public Types

enum  { kNormalVal = 0 }
 
enum  {
  kNormal = 0, kSolid = 1, kToggle = 2, kFlash = 3,
  kAlert = 4, kHorizontalScan = 5, kVerticalScan = 6, kSequence = 7,
  kLife = 8
}
 

Public Member Functions

 TeecesFrontLogics (LedControl &ledControl)
 
int numRows () const
 
int numColumns () const
 
virtual void setup () override
 Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor. More...
 
void selectEffect (long inputNum)
 
virtual void handleCommand (const char *cmd) override
 Command Prefix: FL (top and bottom logics) Command Prefix: TL (top logics) Command Prefix: BL (bottom logics) More...
 
virtual void animate () override
 Subclasses must implement this function to run through a single frame of animation/activity. More...
 
- Public Member Functions inherited from AnimatedEvent
 AnimatedEvent ()
 Default Constructor. More...
 
void setLoopDoneCallback (AnimatedLoopDone loopProc)
 

Additional Inherited Members

- Static Public Member Functions inherited from AnimatedEvent
static void process ()
 Calls animate() for each created AnimatedEvent subclass. More...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kNormalVal 

◆ anonymous enum

anonymous enum
Enumerator
kNormal 
kSolid 
kToggle 
kFlash 
kAlert 
kHorizontalScan 
kVerticalScan 
kSequence 
kLife 

Constructor & Destructor Documentation

◆ TeecesFrontLogics()

TeecesFrontLogics::TeecesFrontLogics ( LedControl &  ledControl)
inline

Member Function Documentation

◆ animate()

virtual void TeecesFrontLogics::animate ( )
inlineoverridevirtual

Subclasses must implement this function to run through a single frame of animation/activity.

Subclasses should not call delay() or otherwise block.

Implements AnimatedEvent.

◆ handleCommand()

virtual void TeecesFrontLogics::handleCommand ( const char *  cmd)
inlineoverridevirtual

Command Prefix: FL (top and bottom logics) Command Prefix: TL (top logics) Command Prefix: BL (bottom logics)

Implements CommandEvent.

◆ numColumns()

int TeecesFrontLogics::numColumns ( ) const
inline

◆ numRows()

int TeecesFrontLogics::numRows ( ) const
inline

◆ selectEffect()

void TeecesFrontLogics::selectEffect ( long  inputNum)
inline

◆ setup()

virtual void TeecesFrontLogics::setup ( )
inlineoverridevirtual

Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor.

Implements SetupEvent.


The documentation for this class was generated from the following file: