#include #include #include #include using namespace std::chrono_literals; #include int main() { std::cout << "Hallo Welt" << std::endl; EPD_7IN5_V2_Init(); EPD_7IN5_V2_ClearBlack(); std::this_thread::sleep_for(2s); EPD_7IN5_V2_Clear(); std::this_thread::sleep_for(2s); std::vector image; image.resize(EPD_7IN5_V2_HEIGHT * EPD_7IN5_V2_WIDTH); uint8_t color = 0; for(int x = 0; x < EPD_7IN5_V2_WIDTH; ++x) { for(int y = 0; y < EPD_7IN5_V2_HEIGHT; ++y) { image[EPD_7IN5_V2_WIDTH * y + x] = color; } color = ~color; } EPD_7IN5_V2_Display(image.data()); std::this_thread::sleep_for(10s); EPD_7IN5_V2_Clear(); EPD_7IN5_V2_Sleep(); return 0; }