8x8 Led Matrix Library 1.0.0
This is a library for the 8x8 Led Matrix by Soldered
Loading...
Searching...
No Matches
MD_EyePair Class Reference

#include <MD_EyePair.h>

Public Member Functions

 MD_EyePair (void)
 
 ~MD_EyePair (void)
 
void begin (uint8_t startdev, Led_Matrix *M, uint16_t maxDelay)
 
void animate (void)
 

Protected Types

enum  posPupil_t {
  P_TL = 0 , P_TC = 1 , P_TR = 2 , P_ML = 3 ,
  P_MC = 4 , P_MR = 5 , P_BL = 6 , P_BC = 7 ,
  P_BR = 8
}
 

Protected Member Functions

void drawEyeball (void)
 
bool blinkEyeball (bool bFirst)
 
void drawPupil (posPupil_t posOld, posPupil_t posNew)
 
bool posIsAdjacent (posPupil_t posCur, posPupil_t posNew)
 
uint16_t bitOut (uint8_t port)
 
uint32_t seedOut (uint16_t noOfBits, uint8_t port)
 

Protected Attributes

Led_Matrix_M
 
uint8_t _sd
 
uint8_t _ed
 
uint32_t _lastBlinkTime
 
uint16_t _currentDelay
 
uint8_t _blinkState
 
uint8_t _savedEyeball [EYEBALL_ROWS]
 
uint8_t _blinkLine
 
posPupil_t _pupilCurPos
 
uint32_t _timeLast
 
uint16_t _timeDelay
 
uint16_t _maxDelay
 
bool _inBlinkCycle
 

Static Protected Attributes

static uint8_t _pupilData []
 
static uint8_t _eyeballData [] = {0x00, 0x3c, 0x7e, 0x7e, 0x7e, 0x7e, 0x3c, 0x00}
 

Member Enumeration Documentation

◆ posPupil_t

enum MD_EyePair::posPupil_t
protected
Enumerator
P_TL 
P_TC 
P_TR 
P_ML 
P_MC 
P_MR 
P_BL 
P_BC 
P_BR 

Constructor & Destructor Documentation

◆ MD_EyePair()

MD_EyePair::MD_EyePair ( void )

◆ ~MD_EyePair()

MD_EyePair::~MD_EyePair ( void )
inline

Member Function Documentation

◆ animate()

void MD_EyePair::animate ( void )

◆ begin()

void MD_EyePair::begin ( uint8_t startdev,
Led_Matrix * M,
uint16_t maxDelay )

◆ bitOut()

uint16_t MD_EyePair::bitOut ( uint8_t port)
protected

◆ blinkEyeball()

bool MD_EyePair::blinkEyeball ( bool bFirst)
protected

◆ drawEyeball()

void MD_EyePair::drawEyeball ( void )
protected

◆ drawPupil()

void MD_EyePair::drawPupil ( posPupil_t posOld,
posPupil_t posNew )
protected

◆ posIsAdjacent()

bool MD_EyePair::posIsAdjacent ( posPupil_t posCur,
posPupil_t posNew )
protected

◆ seedOut()

uint32_t MD_EyePair::seedOut ( uint16_t noOfBits,
uint8_t port )
protected

Member Data Documentation

◆ _blinkLine

uint8_t MD_EyePair::_blinkLine
protected

◆ _blinkState

uint8_t MD_EyePair::_blinkState
protected

◆ _currentDelay

uint16_t MD_EyePair::_currentDelay
protected

◆ _ed

uint8_t MD_EyePair::_ed
protected

◆ _eyeballData

uint8_t MD_EyePair::_eyeballData = {0x00, 0x3c, 0x7e, 0x7e, 0x7e, 0x7e, 0x3c, 0x00}
staticprotected

◆ _inBlinkCycle

bool MD_EyePair::_inBlinkCycle
protected

◆ _lastBlinkTime

uint32_t MD_EyePair::_lastBlinkTime
protected

◆ _M

Led_Matrix* MD_EyePair::_M
protected

◆ _maxDelay

uint16_t MD_EyePair::_maxDelay
protected

◆ _pupilCurPos

posPupil_t MD_EyePair::_pupilCurPos
protected

◆ _pupilData

uint8_t MD_EyePair::_pupilData
staticprotected
Initial value:
= {
PACK_RC(2, 5), PACK_RC(2, 4), PACK_RC(2, 3),
PACK_RC(3, 5), PACK_RC(3, 4), PACK_RC(3, 3),
PACK_RC(4, 5), PACK_RC(4, 4), PACK_RC(4, 3),
}

◆ _savedEyeball

uint8_t MD_EyePair::_savedEyeball[EYEBALL_ROWS]
protected

◆ _sd

uint8_t MD_EyePair::_sd
protected

◆ _timeDelay

uint16_t MD_EyePair::_timeDelay
protected

◆ _timeLast

uint32_t MD_EyePair::_timeLast
protected

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