Skip to content

Instantly share code, notes, and snippets.

@mzyy94
Last active Jan 14, 2022
Embed
What would you like to do?
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "inkplate.hpp"
Inkplate display(DisplayMode::INKPLATE_3BIT);
void main_task(void *)
{
display.begin();
display.clearDisplay();
display.drawImage("/sdcard/grad.bmp", 0, 0, false, false);
display.display();
for (;;)
{
vTaskDelay(1000000 / portTICK_PERIOD_MS);
}
}
extern "C"
{
void app_main()
{
xTaskCreatePinnedToCore(main_task, "main_task", 8192, nullptr, 1, nullptr, 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment