You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
411 B
23 lines
411 B
4 years ago
|
#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;
|
||
|
}
|