[WIP] Use IRQ in SPI driver to improve performances
This commit is contained in:
parent
b4bd41cd56
commit
aa3e5c0c6f
5 changed files with 90 additions and 54 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue