Reading from STDIN never returns any data
Posted: Fri Mar 13, 2026 7:07 am
Hello,
Using a variant "waveshare_esp32_s3_touch_amoled_241" I'm not have any success trying to read characters from stdin.
Starting with the "hello_world_main" example from ESP IDF, the following has been added as a task during the countdown:
The line "Reader . ." is displayed, but then 255 is only ever returned by "getchar()", even with copious ponding on the serial console keyboard.
--
Using a variant "waveshare_esp32_s3_touch_amoled_241" I'm not have any success trying to read characters from stdin.
Starting with the "hello_world_main" example from ESP IDF, the following has been added as a task during the countdown:
Code: Select all
void reader( void *pvParameters ) {
printf("Reader . . \n");
while ( 1 ) {
char ch = getchar();
if ( ch < 255 ) {
printf("Read %c %d\n", ch, ch );
}
vTaskDelay(5);
}
}
--