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 LED_Display & | getInstance () |
Public member to get instance of this SINGLETON class. More... | |
![]() | |
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) |
![]() | |
SingletonTemplate () | |
![]() | |
static SingletonTemplate * | mpSingletonInstance |
Detailed Description
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
-
alpha The 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
-
num A number less than 100
void LED_Display::setRightDigit | ( | char | alpha | ) |
Friends And Related Function Documentation
|
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