diff --git a/examples/v7-usb-device/main/CMakeLists.txt b/examples/v7-usb-device/main/CMakeLists.txt index cb549f4a..d79685e9 100644 --- a/examples/v7-usb-device/main/CMakeLists.txt +++ b/examples/v7-usb-device/main/CMakeLists.txt @@ -4,12 +4,17 @@ # Select only ONE app_source: -# Dumb slow terminal example, type and write character in display -#set(app_sources "serial-note.c") + # Still in research "serial-receive-file.c" IDEA: To make a port of rz (zmodem serial receive protocol to transfer image via serial) -set(app_sources "msc-sd/msc_main.cpp") +set(app_sources +# Dumb slow terminal example, type and write character in display + +"serial-note.c" +#"msc-sd/msc_main.cpp" +#"msc-sd/msc_only_sd.cpp" +) set(requires epdiy esp_tinyusb fatfs console # JpegDecoder diff --git a/examples/v7-usb-device/main/serial-note.c b/examples/v7-usb-device/main/serial-note.c index 54f8de77..16f84bbe 100644 --- a/examples/v7-usb-device/main/serial-note.c +++ b/examples/v7-usb-device/main/serial-note.c @@ -49,10 +49,11 @@ void tinyusb_cdc_rx_callback(int itf, cdcacm_event_t *event) temperature = epd_ambient_temperature(); char strbuf[520]; sprintf(strbuf, "%s", buf); + cursor_x+=10; epd_write_string(&FiraSans_20, strbuf, &cursor_x, &cursor_y, fb, &font_props); // 0D: Carriage return if (buf[0] == 0x0D) { - cursor_y += 16; + cursor_y += 18; cursor_x = 10; } else { cursor_y = temp_y; @@ -131,7 +132,8 @@ const char *descriptor_str[] = { void app_main(void) { - printf("Serial example\n"); + printf("Serial example starting in 2 seconds\n"); + vTaskDelay(pdMS_TO_TICKS(2000)); // EPDiy init epd_init(&epd_board_v7, &ED097TC2, EPD_LUT_64K); epd_set_vcom(1760);