You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/**
|
|
|
|
* TODO file description
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CPROJ_SEVENSEG_H
|
|
|
|
#define CPROJ_SEVENSEG_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct SevenSeg {
|
|
|
|
uint8_t x0;
|
|
|
|
uint8_t y0;
|
|
|
|
uint8_t x;
|
|
|
|
uint8_t charwidth;
|
|
|
|
uint8_t thick;
|
|
|
|
uint8_t spacing;
|
|
|
|
};
|
|
|
|
|
|
|
|
void sseg_home(struct SevenSeg *disp);
|
|
|
|
|
|
|
|
void sseg_digit(struct SevenSeg *disp, uint8_t digit);
|
|
|
|
|
|
|
|
void sseg_blank(struct SevenSeg *disp);
|
|
|
|
|
|
|
|
void sseg_period(struct SevenSeg *disp);
|
|
|
|
|
|
|
|
void sseg_number(struct SevenSeg *disp, uint16_t num, uint8_t places, uint8_t decimals);
|
|
|
|
|
|
|
|
|
|
|
|
#endif //CPROJ_SEVENSEG_H
|