7-segments display functions
More...
Go to the source code of this file.
|
void | configureValueForDisplay (const bool _EDD_isActive, const uint16_t _ValueToDisplay, const bool _diversionEnabled=false, const bool _loadForced=false) |
| Configures the value for display on a 7-segment display.
|
|
void | displayForced () |
| Displays "FORC" on the 7-segment display for forced load override.
|
|
void | displayOff () |
| Displays "OFF" on the 7-segment display.
|
|
void | initializeDisplay () |
| Initializes the display for hardware-driven 7-segment displays.
|
|
void | initializeDisplayHW () |
| Initializes the display for hardware-driven 7-segment displays.
|
|
void | initializeDisplaySW () |
| Initializes the display for software-driven 7-segment displays.
|
|
void | refresh7SegDisplay () |
| Refreshes the display by updating the active digit and its segments.
|
|
void | update7SegmentHWDisplay () |
| Updates the 7-segment display for the next digit (hardware-driven).
|
|
void | update7SegmentSWDisplay () |
| Updates the 7-segment display for the next digit (software-driven).
|
|
|
uint8_t | charsForDisplay [noOfDigitLocations] { 20, 20, 20, 20 } |
|
constexpr uint8_t | decimalPointLine { 14 } |
|
constexpr uint8_t | digitLocationLine [noOfDigitLocationLines] { 16, 15 } |
|
constexpr uint8_t | digitLocationMap [noOfDigitLocations][noOfDigitLocationLines] |
|
constexpr uint8_t | digitSelectionLine [noOfDigitSelectionLines] { 7, 9, 8, 6 } |
|
constexpr uint8_t | digitSelectorPin [noOfDigitLocations] { 16, 10, 13, 11 } |
|
constexpr uint8_t | digitValueMap [noOfPossibleCharacters][noOfDigitSelectionLines] |
|
constexpr uint8_t | DISPLAY_SHUTDOWN_IN_HOURS { 8 } |
|
constexpr uint32_t | displayShutdown_inMainsCycles { DISPLAY_SHUTDOWN_IN_HOURS * mainsCyclesPerHour } |
|
constexpr uint8_t | DPstatus_columnID { noOfDigitSelectionLines } |
|
constexpr uint8_t | DRIVER_CHIP_DISABLED { HIGH } |
|
constexpr uint8_t | DRIVER_CHIP_ENABLED { LOW } |
|
constexpr uint8_t | enableDisableLine { 5 } |
|
constexpr uint8_t | MAX_DISPLAY_TIME_COUNT { 10 } |
|
constexpr uint8_t | noOfDigitLocationLines { 2 } |
|
constexpr uint8_t | noOfDigitLocations { 4 } |
|
constexpr uint8_t | noOfDigitSelectionLines { 4 } |
|
constexpr uint8_t | noOfPossibleCharacters { 14 } |
|
constexpr uint8_t | noOfSegmentsPerDigit { 8 } |
|
constexpr uint8_t | OFF { LOW } |
|
constexpr uint8_t | ON { HIGH } |
|
constexpr uint8_t | segMap [noOfPossibleCharacters][noOfSegmentsPerDigit - 1] |
|
constexpr uint8_t | segmentDrivePin [noOfSegmentsPerDigit] { 2, 5, 12, 6, 7, 9, 8, 14 } |
|
constexpr uint8_t | UPDATE_PERIOD_FOR_DISPLAYED_DATA { 50 } |
|
7-segments display functions
- Author
- Frederic Metrich (frede.nosp@m.ric..nosp@m.metri.nosp@m.ch@l.nosp@m.ive.f.nosp@m.r)
- Version
- 0.1
- Date
- 2024-10-29
- Copyright
- Copyright (c) 2025
7
Definition in file utils_display.h.
◆ DigitEnableStates
◆ charsForDisplay
◆ decimalPointLine
uint8_t decimalPointLine { 14 } |
|
inlineconstexpr |
◆ digitLocationLine
◆ digitLocationMap
◆ digitSelectionLine
◆ digitSelectorPin
◆ digitValueMap
Initial value:{
LOW, LOW, LOW, LOW,
LOW, LOW, LOW, HIGH,
LOW, LOW, HIGH, LOW,
LOW, LOW, HIGH, HIGH,
LOW, HIGH, LOW, LOW,
LOW, HIGH, LOW, HIGH,
LOW, HIGH, HIGH, LOW,
LOW, HIGH, HIGH, HIGH,
HIGH, LOW, LOW, LOW,
HIGH, LOW, LOW, HIGH,
HIGH, HIGH, HIGH, HIGH,
LOW, HIGH, HIGH, HIGH,
HIGH, LOW, HIGH, LOW,
LOW, LOW, HIGH, LOW,
}
Definition at line 62 of file utils_display.h.
Referenced by update7SegmentHWDisplay().
◆ DISPLAY_SHUTDOWN_IN_HOURS
uint8_t DISPLAY_SHUTDOWN_IN_HOURS { 8 } |
|
inlineconstexpr |
◆ displayShutdown_inMainsCycles
◆ DPstatus_columnID
◆ DRIVER_CHIP_DISABLED
uint8_t DRIVER_CHIP_DISABLED { HIGH } |
|
inlineconstexpr |
◆ DRIVER_CHIP_ENABLED
uint8_t DRIVER_CHIP_ENABLED { LOW } |
|
inlineconstexpr |
◆ enableDisableLine
uint8_t enableDisableLine { 5 } |
|
inlineconstexpr |
◆ MAX_DISPLAY_TIME_COUNT
uint8_t MAX_DISPLAY_TIME_COUNT { 10 } |
|
inlineconstexpr |
◆ noOfDigitLocationLines
uint8_t noOfDigitLocationLines { 2 } |
|
inlineconstexpr |
◆ noOfDigitLocations
uint8_t noOfDigitLocations { 4 } |
|
inlineconstexpr |
◆ noOfDigitSelectionLines
uint8_t noOfDigitSelectionLines { 4 } |
|
inlineconstexpr |
◆ noOfPossibleCharacters
uint8_t noOfPossibleCharacters { 14 } |
|
inlineconstexpr |
◆ noOfSegmentsPerDigit
uint8_t noOfSegmentsPerDigit { 8 } |
|
inlineconstexpr |
◆ OFF
◆ ON
◆ segMap
◆ segmentDrivePin
◆ UPDATE_PERIOD_FOR_DISPLAYED_DATA
uint8_t UPDATE_PERIOD_FOR_DISPLAYED_DATA { 50 } |
|
inlineconstexpr |