aboutsummaryrefslogtreecommitdiffstats
path: root/source/driverSharp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/driverSharp.cpp')
-rw-r--r--source/driverSharp.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/source/driverSharp.cpp b/source/driverSharp.cpp
index 74a2a70..2dbcec6 100644
--- a/source/driverSharp.cpp
+++ b/source/driverSharp.cpp
@@ -9,19 +9,26 @@ Adafruit_SharpMem display(SHARP_SCK, SHARP_MOSI, SHARP_SS, 144, 168);
#define BLACK 0
#define WHITE 1
+static TaskHandle_t sharpHandle;
+void sharpTask(void *arg);
+
void sharpInit(void)
{
display.begin();
display.clearDisplay();
- display.setTextSize(1);
+ display.setTextSize(3);
display.setTextColor(BLACK);
display.setCursor(0, 0);
display.println("Hello!");
+
+ xTaskCreate(sharpTask, "sharp", 512, nullptr, TASK_PRIO_LOW, &sharpHandle);
}
-void sharpRefresh(unsigned int pause)
+void sharpTask([[maybe_unused]] void *arg)
{
- display.refresh();
- delay(pause);
+ while (1) {
+ display.refresh();
+ delay(500);
+ }
}