INPUT statement doesn't work

Annex for ESP32
Post Reply
allan
Posts: 4
Joined: Tue Jul 19, 2022 12:35 pm
Has thanked: 1 time
Been thanked: 1 time

INPUT statement doesn't work

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 times
Contact:

Re: INPUT statement doesn't work

Post 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$
Post Reply