RSeries astromech firmware
TeecesRearLogics Class Reference

#include <dome/TeecesLogics.h>

Detailed Description

Teeces Rear Logics Device.

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 TeecesRearLogics:
+ Collaboration diagram for TeecesRearLogics:

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

 TeecesRearLogics (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
 Subclasses should implement this function to process commands specific to their device. 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

◆ TeecesRearLogics()

TeecesRearLogics::TeecesRearLogics ( LedControl &  ledControl)
inline

Member Function Documentation

◆ animate()

virtual void TeecesRearLogics::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 TeecesRearLogics::handleCommand ( const char *  cmd)
inlineoverridevirtual

Subclasses should implement this function to process commands specific to their device.

By convention the first two characters are the device type identifier. 'H' 'P' for holoprojector, etc.

Implements CommandEvent.

◆ numColumns()

int TeecesRearLogics::numColumns ( ) const
inline

◆ numRows()

int TeecesRearLogics::numRows ( ) const
inline

◆ selectEffect()

void TeecesRearLogics::selectEffect ( long  inputNum)
inline

◆ setup()

virtual void TeecesRearLogics::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: