Add driver for hex digits

This only includes the method to set the pairs of displays individually.
The functions to write a single 16 or 32 bit value have not been
implemented yet, nor has the mask function.
This commit is contained in:
Byron Lathi
2022-03-12 21:26:19 -06:00
parent 627b6a746a
commit 9bbfce23e2
4 changed files with 59 additions and 7 deletions

View File

@@ -1,11 +1,12 @@
#define SEVEN_SEG 0x7ff0
#include <stdint.h>
int main() {
uint16_t* seven_seg;
seven_seg = (uint16_t*)SEVEN_SEG;
#include "sevenseg.h"
*seven_seg = 0xbabe;
int main() {
//hex_enable(0xff);
hex_set_8(0xb5, 0);
hex_set_8(0x00, 1);
hex_set_8(0xb0, 2);
while(1);
return 0;
}