Version 1.0
This commit is contained in:
30
Core/Inc/DS_SingleDigitDisplay.h
Normal file
30
Core/Inc/DS_SingleDigitDisplay.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef DS_SINGLE_DIGIT_DISPLAY_H
|
||||
#define DS_SINGLE_DIGIT_DISPLAY_H
|
||||
|
||||
#include "stm32f0xx_hal.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct DS_SingleDigitDisplay
|
||||
{
|
||||
GPIO_TypeDef *Port_A, *Port_B, *Port_C, *Port_D, *Port_E, *Port_F, *Port_G, *Port_DP;
|
||||
uint16_t Pin_A, Pin_B, Pin_C, Pin_D, Pin_E, Pin_F, Pin_G, Pin_DP;
|
||||
bool DotEnable;
|
||||
}DS_SingleDigitDisplay;
|
||||
|
||||
void DS_SingleDisplayInit(DS_SingleDigitDisplay *Display,
|
||||
GPIO_TypeDef *Port_A, uint16_t Pin_A,
|
||||
GPIO_TypeDef *Port_B, uint16_t Pin_B,
|
||||
GPIO_TypeDef *Port_C, uint16_t Pin_C,
|
||||
GPIO_TypeDef *Port_D, uint16_t Pin_D,
|
||||
GPIO_TypeDef *Port_E, uint16_t Pin_E,
|
||||
GPIO_TypeDef *Port_F, uint16_t Pin_F,
|
||||
GPIO_TypeDef *Port_G, uint16_t Pin_G,
|
||||
GPIO_TypeDef *Port_DP, uint16_t Pin_DP);
|
||||
|
||||
void DS_SingleDisplayPrint(DS_SingleDigitDisplay *Display, uint8_t Digit);
|
||||
|
||||
void DS_SingleDisplayPoint(DS_SingleDigitDisplay *Display, bool Enable);
|
||||
|
||||
|
||||
|
||||
#endif // DS_SINGLE_DIGIT_DISPLAY_H
|
||||
Reference in New Issue
Block a user