libyggdrasil
v1.0.0
|
Driver to use the Seven segment display. More...
#include <c/yggdrasil/types.h>
Go to the source code of this file.
Functions | |
C_LINKAGE void | yggdrasil_SevenSegment_Init (void) |
Initialization function. More... | |
C_LINKAGE void | yggdrasil_SevenSegment_SetUnsigned (u16 value) |
Display a unsigned value from 0 to 9999 on the 7 segments. More... | |
C_LINKAGE void | yggdrasil_SevenSegment_SetSigned (i16 value) |
Display a signed value from -999 to 999 on the 7 segments. More... | |
C_LINKAGE void | yggdrasil_SevenSegment_SetHexadecimal (u16 value) |
Display a unsigned value from 0 to 0xFFFF in hexadecimal on the 7 segments. More... | |
C_LINKAGE void | yggdrasil_SevenSegment_SetFloatingPoint (float value) |
Display a floating point value from -99.9 to 99.9 on the 7 segments, the function will show as many decimal places as possible. More... | |
C_LINKAGE void | yggdrasil_SevenSegment_SetDigit (char value) |
Set the segments to the given value, supports hexadecimal, '-' for minus and ' ' for an empty segment. More... | |
C_LINKAGE void | yggdrasil_SevenSegment_EnableDigit (u8 number) |
Enable one single segment. More... | |
C_LINKAGE void | yggdrasil_SevenSegment_Disable (void) |
Disable all segments. More... | |
Driver to use the Seven segment display.
C_LINKAGE void yggdrasil_SevenSegment_Disable | ( | void | ) |
Disable all segments.
Enable one single segment.
number | Digit to enable |
C_LINKAGE void yggdrasil_SevenSegment_Init | ( | void | ) |
Initialization function.
C_LINKAGE void yggdrasil_SevenSegment_SetDigit | ( | char | value | ) |
Set the segments to the given value, supports hexadecimal, '-' for minus and ' ' for an empty segment.
value | Digit to set |
C_LINKAGE void yggdrasil_SevenSegment_SetFloatingPoint | ( | float | value | ) |
Display a floating point value from -99.9 to 99.9 on the 7 segments, the function will show as many decimal places as possible.
value | Value to display |
Display a unsigned value from 0 to 0xFFFF in hexadecimal on the 7 segments.
value | Value to display in hexadecimal |
Display a signed value from -999 to 999 on the 7 segments.
value | Value to display |