Adam Pippin
4 years ago
2 changed files with 24 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||
|
#include <M5StickC.h> |
||||
|
#include "Kernel.h" |
||||
|
|
||||
|
int UI(int pid, unsigned int signal) |
||||
|
{ |
||||
|
if (signal & SIGNAL_START) |
||||
|
{ |
||||
|
Kernel_signal_mask(pid, SIGNAL_START | SIGNAL_STOP | SIGNAL_REDRAW); |
||||
|
} |
||||
|
if (signal & SIGNAL_STOP) |
||||
|
{ |
||||
|
return 255; |
||||
|
} |
||||
|
if (signal & SIGNAL_REDRAW) |
||||
|
{ |
||||
|
M5.Lcd.fillScreen(TFT_DARKGREY); |
||||
|
M5.Lcd.setRotation(3); |
||||
|
M5.Lcd.setTextColor(TFT_WHITE, TFT_DARKGREY); |
||||
|
} |
||||
|
|
||||
|
return 0; |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
|
||||
|
int UI(int pid, unsigned int signal); |
Loading…
Reference in new issue