Use the builtin RTC and display it

Its roughly %15 fast, and initializes to zero, but the display
currently shows HH:MM:SS AM/PM.
This commit is contained in:
2019-03-11 22:56:08 -07:00
parent dedcb5af71
commit d5bfecedb2
10 changed files with 285 additions and 8 deletions

View File

@@ -25,6 +25,7 @@
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include <stdbool.h>
#include "spi.h"
#include "font.h"
@@ -52,6 +53,10 @@ struct display
{
SPI_TypeDef *spi;
struct display_buffer buffer;
bool is_dirty;
uint8_t dirty_line_min;
uint8_t dirty_line_max;
};