RSeries astromech firmware
MagicPanel Class Reference

#include <dome/MagicPanel.h>

Detailed Description

Magic Panel by ia-parts.com.

The MagicPanel is implemented as an 8x8 LED grid using 2 device MAX7221.

Default pinout: pin 8 is connected to the DataIn pin 7 is connected to the CLK pin 6 is connected to LOAD

+ Inheritance diagram for MagicPanel:
+ Collaboration diagram for MagicPanel:

Public Member Functions

 MagicPanel (byte dataPin=8, byte clkPin=7, byte csPin=6)
 Default Constructor. More...
 
- Public Member Functions inherited from MagicPanelBase
 MagicPanelBase (LedControl &ledControl)
 Default Constructor. More...
 
virtual void setup () override
 Perform any initialzation not possible in the constructor. More...
 
void selectEffect (long inputNum)
 Select the specified effect using a 32-bit integer. More...
 
virtual void handleCommand (const char *cmd) override
 MP00000 - Normal MP10000 - Solid MP20000 - Toggle MP30000 - Flash MP40000 - Alert MP50000 - Horizontal Scan MP60000 - Vertical Scan MP70000 - Game of Life MP80000 - Expand Solid MP90000 - Collapse Solid MP100000 - Expand Hollow MP110000 - Collapse Hollow MP120000 - Forward Q MP130000 - Reverse Q MP140000 - Cistercian. More...
 
void setSequence (Sequence seq=kNormal, uint8_t speedScale=0, uint8_t numSeconds=0)
 Select the specified effect sequence. More...
 
virtual void animate () override
 Perform a single frame of LED animation based on the selected sequence. More...
 
- Public Member Functions inherited from AnimatedEvent
 AnimatedEvent ()
 Default Constructor. More...
 
void setLoopDoneCallback (AnimatedLoopDone loopProc)
 

Additional Inherited Members

- Public Types inherited from MagicPanelBase
enum  EffectValue { kNormalVal = 0 }
 
enum  Sequence {
  kNormal = 0, kSolid = 1, kToggle = 2, kFlash = 3,
  kAlert = 4, kHorizontalScan = 5, kVerticalScan = 6, kLife = 7,
  kExpandSolid = 8, kCollapseSolid = 9, kExpandHollow = 10, kCollapseHollow = 11,
  kForwardQ = 12, kReverseQ = 13, kCistercian = 14
}
 
- Static Public Member Functions inherited from AnimatedEvent
static void process ()
 Calls animate() for each created AnimatedEvent subclass. More...
 
- Protected Types inherited from MagicPanelBase
enum  EffectValue { kNormalVal = 0 }
 
enum  Sequence {
  kNormal = 0, kSolid = 1, kToggle = 2, kFlash = 3,
  kAlert = 4, kHorizontalScan = 5, kVerticalScan = 6, kLife = 7,
  kExpandSolid = 8, kCollapseSolid = 9, kExpandHollow = 10, kCollapseHollow = 11,
  kForwardQ = 12, kReverseQ = 13, kCistercian = 14
}
 
- Protected Member Functions inherited from LedControlMAX7221< 2 >
 LedControlMAX7221 (byte dataPin, byte clkPin, byte csPin)
 Constructor. More...
 
virtual byte addDevice (byte count=1) override
 Add device to chain and return index. More...
 
virtual int getDeviceCount () override
 
virtual bool isPowered (byte device) override
 
virtual void setPower (byte device, bool onState, byte count=1) override
 Enable/disable power Params : device The address of the display to control status If true the device goes into power-down mode. More...
 
virtual void setScanLimit (byte device, byte limit, byte count=1) override
 Set the number of digits (or rows) to be displayed. More...
 
virtual void setIntensity (byte device, byte intensity, byte count=1) override
 Set the brightness of the display. More...
 
virtual void clearDisplay (byte device, byte count=1) override
 Switch all Leds on the display off. More...
 
virtual void setLed (byte device, int row, int column, boolean state) override
 Set the status of a single Led. More...
 
virtual void setRow (byte device, int row, byte value) override
 Set all 8 Led's in a row to a new state Params: device address of the display row row which is to be set (0..7) value each bit set to 1 will light up the corresponding Led. More...
 
virtual void setRowNoCache (byte device, int row, byte value) override
 Set all 8 Led's in a row to a new state (no cache) Params: device address of the display row row which is to be set (0..7) value each bit set to 1 will light up the corresponding Led. More...
 
virtual void setColumn (byte device, int column, byte value) override
 Set all 8 Led's in a column to a new state Params: device address of the display column column which is to be set (0..7) value each bit set to 1 will light up the corresponding Led. More...
 
virtual byte getRow (byte device, byte row) override
 
- Protected Member Functions inherited from MagicPanelBase
 MagicPanelBase (LedControl &ledControl)
 Default Constructor. More...
 
virtual void setup () override
 Perform any initialzation not possible in the constructor. More...
 
void selectEffect (long inputNum)
 Select the specified effect using a 32-bit integer. More...
 
virtual void handleCommand (const char *cmd) override
 MP00000 - Normal MP10000 - Solid MP20000 - Toggle MP30000 - Flash MP40000 - Alert MP50000 - Horizontal Scan MP60000 - Vertical Scan MP70000 - Game of Life MP80000 - Expand Solid MP90000 - Collapse Solid MP100000 - Expand Hollow MP110000 - Collapse Hollow MP120000 - Forward Q MP130000 - Reverse Q MP140000 - Cistercian. More...
 
void setSequence (Sequence seq=kNormal, uint8_t speedScale=0, uint8_t numSeconds=0)
 Select the specified effect sequence. More...
 
virtual void animate () override
 Perform a single frame of LED animation based on the selected sequence. More...
 
- Protected Member Functions inherited from AnimatedEvent
 AnimatedEvent ()
 Default Constructor. More...
 
void setLoopDoneCallback (AnimatedLoopDone loopProc)
 
- Static Protected Member Functions inherited from AnimatedEvent
static void process ()
 Calls animate() for each created AnimatedEvent subclass. More...
 

Constructor & Destructor Documentation

◆ MagicPanel()

MagicPanel::MagicPanel ( byte  dataPin = 8,
byte  clkPin = 7,
byte  csPin = 6 
)
inline

Default Constructor.


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