[WIP] Use IRQ in SPI driver to improve performances

This commit is contained in:
JF
2020-01-22 19:45:53 +01:00
parent b4bd41cd56
commit aa3e5c0c6f
5 changed files with 90 additions and 54 deletions

View File

@@ -9,10 +9,10 @@ using namespace Pinetime::Applications::Screens;
void Clock::Refresh(bool fullRefresh) {
if(fullRefresh) {
gfx.FillRectangle(0,0,240,240,0x0000);
currentChar[0] = 0;
currentChar[1] = 0;
currentChar[2] = 0;
currentChar[3] = 0;
currentChar[0] = 1;
currentChar[1] = 2;
currentChar[2] = 3;
currentChar[3] = 4;
auto dummy = currentDateTime.Get();
}

View File

@@ -9,6 +9,6 @@ using namespace Pinetime::Applications::Screens;
void Message::Refresh(bool fullRefresh) {
if(fullRefresh) {
gfx.FillRectangle(0,0,240,240,0xffff);
gfx.DrawString(120, 10, 0x0000, "COUCOU", &smallFont, false);
gfx.DrawString(120, 10, 0x5555, "COUCOU", &smallFont, false);
}
}