Good day to all in the forum,
I wrote a simple program using Picbasic Pro that increases or decreases a variable in the program using the "U" or the "D" keys from a PC terminal program like the windows Hyperterminal.
It works but I will like to enter the numeric value to be assigned to the TON variable in my program using the terminal keyboard and tyiping the required value as like as 2568 msec.
This is my presently used code:
DEBUG " ENTER U or D then F to finish "
PIPPO:
DEBUGIN [KEY_IN]
if key_in="U" then ton=ton+100
if ton>10000 then ton=10000
DEBUG 13,10,DEC TON, 13,10
IF KEY_IN="D" THEN TON=TON-100
IF TON<1 THEN TON=1
DEBUG 13,10,DEC TON ,13,10
TOFF=10000-TON
IF KEY_IN="F" THEN GOTO MAIN
GOTO PIPPO
GOTO MAIN
Any help in writing the picbasic code ?
Thanks a lot for any help on the matter.
regards,
Ambrogio
IW2FVO
North Italy
Bookmarks