Page 1 of 1

INPUT statement doesn't work

Posted: Fri Jul 22, 2022 8:56 pm
by allan
I cannot enter data (number or string) by using this simple "input.bas" example.

The AnnexToolKit serial monitor prompts for the input data but entering eg a number and then pressing <enter> on the keyboard doesn't work.
The program never leaves the input statement line.

I am using 1.44.2 for ESP32

Allan

Re: INPUT statement doesn't work

Posted: Fri Jul 22, 2022 10:14 pm
by cicciocb
Hi allan,
Devo ammettere di non aver mai provato questa funzione sull'ESP32.
Occorre utilizzare un timeout sufficiente per avere il tempo di poter rispondere alla domanda quindi questo codice qui sotto funziona:

Code: [Local Link Removed for Guests]

print time$
print date$

input.timeout 10000

input "numero"; a
print a

input "stringa"; a$
print a$