[M] Dropped Sleep for now (IRQ Isssues)
This commit is contained in:
@@ -18,8 +18,6 @@ void DrawMain(bool v){
|
||||
|
||||
void Display::setup(){
|
||||
DEV_Module_Init();
|
||||
// EPD_2IN13_V2_Init(EPD_2IN13_V2_FULL);
|
||||
// EPD_2IN13_V2_Clear();
|
||||
|
||||
uint16_t Imagesize = ((EPD_2IN13_V2_WIDTH % 8 == 0) ? (EPD_2IN13_V2_WIDTH / 8 ) : (EPD_2IN13_V2_WIDTH / 8 + 1)) * EPD_2IN13_V2_HEIGHT;
|
||||
if ((BlackImage = (uint8_t *)malloc(Imagesize)) == NULL) exit(1);
|
||||
@@ -33,6 +31,7 @@ void Display::setup(){
|
||||
|
||||
void Display::clearTime(){
|
||||
Paint_ClearWindows(170, EPD_2IN13_V2_WIDTH - Font24.Height+2, 170 + Font24.Width * 4.5, EPD_2IN13_V2_WIDTH, WHITE);
|
||||
EPD_2IN13_V2_DisplayPart(BlackImage);
|
||||
}
|
||||
|
||||
void Display::drawTime(strDateTime* dt){
|
||||
|
@@ -29,6 +29,11 @@ class TimedFun {
|
||||
counter += m;
|
||||
}
|
||||
|
||||
void setTick(int64_t m){
|
||||
counter = m;
|
||||
old_counter = m;
|
||||
}
|
||||
|
||||
void update(){
|
||||
uint64_t ccounter = old_counter;
|
||||
old_counter = counter;
|
||||
|
Reference in New Issue
Block a user