Clean up unused code in inkpot.c

This commit is contained in:
arne 2025-10-05 10:26:44 +02:00
commit 6b2d89340a

View file

@ -177,60 +177,12 @@ void scan_wifi_networks(void) {
} }
void app_main(void) { void app_main(void) {
/*
epd_init(&epd_board_lilygo_t5_47, &ED097TC2, EPD_LUT_64K);
// epd_set_vcom(1560);
hl = epd_hl_init(WAVEFORM);
epd_set_rotation(EPD_ROT_LANDSCAPE);
fb = epd_hl_get_framebuffer(&hl);
epd_clear();
// Default orientation is EPD_ROT_LANDSCAPE
printf(
"Dimensions after rotation, width: %d height: %d\n\n",
epd_rotated_display_width(),
epd_rotated_display_height()
);
// draw a black rectangle
EpdRect some_rect = {
.x = 100,
.y = 100,
.width = 200,
.height = 100
};
epd_draw_rect(some_rect, 0x0, fb);
// write a message
int cursor_x = 100;
int cursor_y = 300;
epd_write_default(&DepartureMono22, "TODO 2025-10-04", &cursor_x, &cursor_y, fb);
int cursor_x_2 = 100;
int cursor_y_2 = 344;
epd_write_default(&DepartureMono11, "- [ ] Create epaper thingy", &cursor_x_2, &cursor_y_2, fb);
int cursor_x_3 = 100;
int cursor_y_3 = 377;
epd_write_default(&DepartureMono11, "- [ ] Be kind", &cursor_x_3, &cursor_y_3, fb);
int cursor_x_4 = 100;
int cursor_y_4 = 410;
epd_write_default(&DepartureMono11, "- [ ] Enjoy life", &cursor_x_4, &cursor_y_4, fb);
// draw a line pattern
for (int i = 0; i < 20; i++) {
epd_draw_line(400 + i * 20, 100, 400 + (i + 1) * 20, 300, 0x0, fb);
epd_draw_line(401 + i * 20, 100, 401 + (i + 1) * 20, 300, 0x0, fb);
} }
// finally, update the display!
int temperature = 25;
epd_poweron();
epd_hl_update_screen(&hl, MODE_GC16, temperature);
epd_poweroff();
*/
// Initialize and mount the filesystem // Initialize and mount the filesystem
init_filesystem(); init_filesystem();