LED_Display Class Reference

#include <LED_Display.hpp>

Inheritance diagram for LED_Display:
Collaboration diagram for LED_Display:

Public Member Functions

bool init ()
 Initializes this device,. More...
 
void clear ()
 
void setNumber (char num)
 
void setLeftDigit (char alpha)
 
void setRightDigit (char alpha)
 

Friends

class SingletonTemplate< LED_Display >
 Friend class used for Singleton Template. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SingletonTemplate< LED_Display >
static LED_DisplaygetInstance ()
 Public member to get instance of this SINGLETON class. More...
 
- Protected Member Functions inherited from i2c2_device
 i2c2_device (uint8_t addr)
 Constructor of this base class that takes addr as a parameter. More...
 
uint8_t readReg (unsigned char reg)
 
void writeReg (unsigned char reg, unsigned char data)
 Writes a register of this device. More...
 
bool checkDeviceResponse ()
 
uint16_t get16BitRegister (unsigned char reg)
 
- Protected Member Functions inherited from SingletonTemplate< LED_Display >
 SingletonTemplate ()
 
- Static Protected Attributes inherited from SingletonTemplate< LED_Display >
static SingletonTemplatempSingletonInstance
 

Detailed Description

LED Display class to manipulate the on-board 2 digit LED display

Member Function Documentation

void LED_Display::clear ( void  )

Clears the display

bool LED_Display::init ( void  )

Initializes this device,.

Returns
true if successful
void LED_Display::setLeftDigit ( char  alpha)

Single Digit Manipulation Functions Sets the left and right alpha-numeric display individually

Parameters
alphaThe alpha to set, such as "B" or "9"
Note
Note all characters can be displayed on this 7-segment display
void LED_Display::setNumber ( char  num)

Sets the number on LED display

Parameters
numA number less than 100
void LED_Display::setRightDigit ( char  alpha)

Friends And Related Function Documentation

friend class SingletonTemplate< LED_Display >
friend

Friend class used for Singleton Template.


The documentation for this class was generated from the following files:
  • /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L4_IO/LED_Display.hpp
  • /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L4_IO/src/io_source.cpp