libyggdrasil  v1.0.0
seven_segment.h
Go to the documentation of this file.
1  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * _____.___. .___ .__.__ *
3  * \__ | | ____ ____ __| _/___________ _____|__| | *
4  * / | |/ ___\ / ___\ / __ |\_ __ \__ \ / ___/ | | *
5  * \____ / /_/ > /_/ > /_/ | | | \// __ \_\___ \| | |__ *
6  * / ______\___ /\___ /\____ | |__| (____ /____ >__|____/ *
7  * \/ /_____//_____/ \/ \/ \/ *
8  * - Yggdrasil - *
9  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10  * This software can be used by students and other personal of the *
11  * Bern University of Applied Sciences under the terms of the MIT *
12  * license. *
13  * For other persons this software is under the terms of the GNU *
14  * General Public License version 2. *
15  * *
16  * Copyright © 2021, Bern University of Applied Sciences. *
17  * All rights reserved. *
18  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26 #pragma once
27 
28 #include <c/yggdrasil/types.h>
29 
36 
44 
52 
60 
68 
76 
83 
u16
uint16_t u16
Definition: types.h:37
u8
uint8_t u8
Unsigned integer definitions.
Definition: types.h:36
yggdrasil_SevenSegment_SetSigned
C_LINKAGE void yggdrasil_SevenSegment_SetSigned(i16 value)
Display a signed value from -999 to 999 on the 7 segments.
i16
int16_t i16
Definition: types.h:47
yggdrasil_SevenSegment_SetFloatingPoint
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 d...
yggdrasil_SevenSegment_Init
C_LINKAGE void yggdrasil_SevenSegment_Init(void)
Initialization function.
yggdrasil_SevenSegment_EnableDigit
C_LINKAGE void yggdrasil_SevenSegment_EnableDigit(u8 number)
Enable one single segment.
types.h
yggdrasil_SevenSegment_SetUnsigned
C_LINKAGE void yggdrasil_SevenSegment_SetUnsigned(u16 value)
Display a unsigned value from 0 to 9999 on the 7 segments.
yggdrasil_SevenSegment_SetDigit
C_LINKAGE void yggdrasil_SevenSegment_SetDigit(char value)
Set the segments to the given value, supports hexadecimal, '-' for minus and ' ' for an empty segment...
yggdrasil_SevenSegment_SetHexadecimal
C_LINKAGE void yggdrasil_SevenSegment_SetHexadecimal(u16 value)
Display a unsigned value from 0 to 0xFFFF in hexadecimal on the 7 segments.
C_LINKAGE
#define C_LINKAGE
Definition: attributes.h:43
yggdrasil_SevenSegment_Disable
C_LINKAGE void yggdrasil_SevenSegment_Disable(void)
Disable all segments.