Version 1.0
This commit is contained in:
30
Inc/DS_MAX7219.h
Normal file
30
Inc/DS_MAX7219.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef DSMAX7219_H
|
||||
#define DSMAX7219_H
|
||||
|
||||
#include "stm32f0xx_hal.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct DS_MAX7219
|
||||
{
|
||||
SPI_HandleTypeDef* SPI;
|
||||
char DisplayData[8];
|
||||
uint8_t Dots;
|
||||
uint8_t DecodeMode, Intensivity, ScanLimit;
|
||||
bool EnableDecodeMode;
|
||||
GPIO_TypeDef* Port_CS;
|
||||
uint16_t Pin_CS;
|
||||
}DS_MAX7219;
|
||||
|
||||
void DS_MAX7219_Init(DS_MAX7219* Display, SPI_HandleTypeDef* SPI, GPIO_TypeDef* Port_CS, uint16_t Pin_CS);
|
||||
|
||||
void DS_MAX7219_EnableDots(DS_MAX7219* Display, uint8_t Dots);
|
||||
|
||||
void DS_MAX7219_Print(DS_MAX7219* Display, int64_t Number);
|
||||
|
||||
void DS_MAX7219_UpdataDisplay(DS_MAX7219* Display);
|
||||
|
||||
void DS_MAX7219_ConfigureDisplay(DS_MAX7219* Display, uint8_t DecodeMode, uint8_t Intensivity, uint8_t ScanLimit);
|
||||
|
||||
void __DS_MAX7219_SendConfigData(DS_MAX7219* Display);
|
||||
|
||||
#endif //DSMAX7219_H
|
||||
Reference in New Issue
Block a user