|
TM1638_plus 2.2.0
Arduino library for Tm1638 modules
|
Drive MAX7219 seven segment displays. More...
#include <MAX7219plus.h>

Public Member Functions | |
| MAX7219plus_Model6 (uint8_t chipSelect, uint8_t clock, uint8_t data, uint16_t CommDelay, uint8_t totalDisplays) | |
| Constructor for class MAX7219plus_Model6 software SPI. | |
| MAX7219plus_Model6 (uint8_t chipSelect, uint8_t totalDisplays) | |
| Constructor for class MAX7219plus_Model6 hardware SPI. | |
| void | InitDisplay (ScanLimit_e numDigits, DecodeMode_e decodeMode) |
| Init the display. | |
| void | ClearDisplay (void) |
| Clear the display. | |
| void | SetBrightness (uint8_t brightness) |
| sets the brightness of display | |
| void | DisplayTestMode (bool OnOff) |
| Turn on and off the Display Test Mode. | |
| void | ShutdownMode (bool OnOff) |
| Turn on and off the Shutdown Mode. | |
| uint16_t | GetCommDelay (void) |
| Get the communication delay value. | |
| void | SetCommDelay (uint16_t commDelay) |
| Set the communication delay value. | |
| bool | GetHardwareSPI (void) |
| get value of _HardwareSPI , true hardware SPI on , false off. | |
| uint8_t | GetCurrentDisplayNumber (void) |
| Get the Current Display Number. | |
| void | SetCurrentDisplayNumber (uint8_t) |
| Set the Current Display Number. | |
| void | DisplayChar (uint8_t digit, uint8_t value, DecimalPoint_e decimalPoint) |
| Displays a character on display. | |
| int | DisplayText (char *text, TextAlignment_e TextAlignment) |
| Displays a text string on display. | |
| int | DisplayText (char *text) |
| Displays a text string on display. | |
| void | DisplayIntNum (unsigned long number, TextAlignment_e TextAlignment) |
| Display an integer and leading zeros optional. | |
| void | DisplayDecNumNibble (uint16_t numberUpper, uint16_t numberLower, TextAlignment_e TextAlignment) |
| Display an integer in a nibble (4 digits on display) | |
| void | DisplayBCDChar (uint8_t digit, CodeBFont_e value) |
| Displays a character on display using MAX7219 Built in BCD code B font. | |
| int | DisplayBCDText (char *text) |
| Displays a BCD text string on display using MAX7219 Built in BCD code B font. | |
| void | SetSegment (uint8_t digit, uint8_t segment) |
| Set a seven segment LED ON. | |
Additional Inherited Members | |
Public Attributes inherited from CommonData | |
| bool | displaylib_LED_debug = false |
Static Public Attributes inherited from CommonData | |
| static constexpr uint16_t | displaylib_LED_VersionNum = 220 |
Static Protected Member Functions inherited from SevenSegmentFont | |
| static const uint8_t * | pFontSevenSegptr () |
| Retrieves a pointer to the seven-segment font data table. | |
Static Protected Attributes inherited from SevenSegmentFont | |
| static constexpr uint8_t | _ASCII_FONT_OFFSET = 0x20 |
| static constexpr uint8_t | _ASCII_FONT_END = 0x7B |
| static constexpr uint8_t | _ASCII_FONT_HEX_OFFSET = 0x10 |
| static constexpr uint8_t | DEC_POINT_7_MASK = 0x80 |
Drive MAX7219 seven segment displays.
| enum MAX7219plus_Model6::CodeBFont_e : uint8_t |
sets BCD code B font (0-9, E, H, L,P, and -) Built-in font
| enum MAX7219plus_Model6::DecodeMode_e : uint8_t |
The decode-mode register sets BCD code B or no-decode operation for each digit
| enum MAX7219plus_Model6::Intensity_e : uint8_t |
| enum MAX7219plus_Model6::RegisterModes_e : uint8_t |
Register opcodes of the MAZ7219 chip, Register Address Map
| enum MAX7219plus_Model6::ScanLimit_e : uint8_t |
The scan-limit register sets how many digits are displayed
| enum MAX7219plus_Model6::TextAlignment_e : uint8_t |
| MAX7219plus_Model6::MAX7219plus_Model6 | ( | uint8_t | chipSelect, |
| uint8_t | clock, | ||
| uint8_t | data, | ||
| uint16_t | CommDelay, | ||
| uint8_t | totalDisplays | ||
| ) |
Constructor for class MAX7219plus_Model6 software SPI.
| clock | CLk pin |
| chipSelect | CS pin |
| data | DIO pin |
| CommDelay | Software SPI communications delay in uS |
| totalDisplays | Total number of displays in cascade |
| MAX7219plus_Model6::MAX7219plus_Model6 | ( | uint8_t | chipSelect, |
| uint8_t | totalDisplays | ||
| ) |
Constructor for class MAX7219plus_Model6 hardware SPI.
| chipSelect | CS pin |
| totalDisplays | Total number of displays in cascade |
| void MAX7219plus_Model6::DisplayBCDChar | ( | uint8_t | digit, |
| CodeBFont_e | value | ||
| ) |
Displays a character on display using MAX7219 Built in BCD code B font.
| digit | The digit to display character in, 7-0 ,7 = LHS 0 =RHS |
| value | The BCD character to display |
| int MAX7219plus_Model6::DisplayBCDText | ( | char * | text | ) |
Displays a BCD text string on display using MAX7219 Built in BCD code B font.
| text | pointer to character array containing text string |
| void MAX7219plus_Model6::DisplayChar | ( | uint8_t | digit, |
| uint8_t | character, | ||
| DecimalPoint_e | decimalPoint | ||
| ) |
Displays a character on display.
| digit | The digit to display character in, 7-0 ,7 = LHS 0 =RHS |
| character | The ASCII character to display |
| decimalPoint | Is the decimal point(dp) to be set or not. |
| void MAX7219plus_Model6::DisplayDecNumNibble | ( | uint16_t | numberUpper, |
| uint16_t | numberLower, | ||
| TextAlignment_e | TextAlignment | ||
| ) |
Display an integer in a nibble (4 digits on display)
| numberUpper | upper nibble integer 2^16 |
| numberLower | lower nibble integer 2^16 |
| TextAlignment | left or right alignment or leading zeros |
| void MAX7219plus_Model6::DisplayIntNum | ( | unsigned long | number, |
| TextAlignment_e | TextAlignment | ||
| ) |
Display an integer and leading zeros optional.
| number | integer to display 2^32 |
| TextAlignment | enum text alignment, left or right alignment or leading zeros |
| void MAX7219plus_Model6::DisplayTestMode | ( | bool | OnOff | ) |
Turn on and off the Display Test Mode.
| OnOff | true = display test mode on , false display Test Mode off |
| int MAX7219plus_Model6::DisplayText | ( | char * | text | ) |
Displays a text string on display.
| text | pointer to character array containing text string |
| int MAX7219plus_Model6::DisplayText | ( | char * | text, |
| TextAlignment_e | TextAlignment | ||
| ) |
Displays a text string on display.
| text | pointer to character array containg text string |
| TextAlignment | left or right alignment |
AlignRightZeros option for Text alignment not supported in this function.
| uint16_t MAX7219plus_Model6::GetCommDelay | ( | void | ) |
Get the communication delay value.
| uint8_t MAX7219plus_Model6::GetCurrentDisplayNumber | ( | void | ) |
Get the Current Display Number.
| bool MAX7219plus_Model6::GetHardwareSPI | ( | void | ) |
get value of _HardwareSPI , true hardware SPI on , false off.
| void MAX7219plus_Model6::InitDisplay | ( | ScanLimit_e | numDigits, |
| DecodeMode_e | decodeMode | ||
| ) |
Init the display.
| numDigits | scan limit set to 8 normally , advanced use only |
| decodeMode | Must users will use 0x00 here |
| void MAX7219plus_Model6::SetBrightness | ( | uint8_t | brightness | ) |
sets the brightness of display
| brightness | rang 0x00 to 0x0F , 0x00 being least bright. |
| void MAX7219plus_Model6::SetCommDelay | ( | uint16_t | commDelay | ) |
Set the communication delay value.
| commDelay | Set the communication delay value uS software SPI |
| void MAX7219plus_Model6::SetCurrentDisplayNumber | ( | uint8_t | DisplayNum | ) |
Set the Current Display Number.
| DisplayNum | Set the Current Display Number |
| void MAX7219plus_Model6::SetSegment | ( | uint8_t | digit, |
| uint8_t | segment | ||
| ) |
Set a seven segment LED ON.
| digit | The digit to set segment in, 7-0 ,7 = LHS 0 =RHS |
| segment | The segment of seven segment to set dpabcdefg |
| void MAX7219plus_Model6::ShutdownMode | ( | bool | OnOff | ) |
Turn on and off the Shutdown Mode.
| OnOff | true = Shutdown mode on , false shutdown mode off |