Help on btn_juke.bas program
Archiver
Posts: 46,084
HI!
I AM NEW ON BASIC STAMPS
REMEMBER THE BNT_JUKE.BAS PROGRAM ON THE BASIC STAMP MANUAL?
WELL, IM YUST TRYING TO ADD A SECOND BUTTON TO SCROLL DE LED'S IN THE
OTHER DIRECTION, SO I CAN HAVE ONE BUTTON FOR UP AND OTHER FOR DOWN.
I TRY BUT THE ONLY THING I CAN GET IS , WHEN I PRESS ANY OF THE
BUTTONS, THE LED'S SCROLL SO FAST AND LIKE CRAZY.
SOME ONE WITH MORE EXPERIENCE ON THIS CAN HELP ME?
THANKS..
PRAVOKA@Y...
I AM NEW ON BASIC STAMPS
REMEMBER THE BNT_JUKE.BAS PROGRAM ON THE BASIC STAMP MANUAL?
WELL, IM YUST TRYING TO ADD A SECOND BUTTON TO SCROLL DE LED'S IN THE
OTHER DIRECTION, SO I CAN HAVE ONE BUTTON FOR UP AND OTHER FOR DOWN.
I TRY BUT THE ONLY THING I CAN GET IS , WHEN I PRESS ANY OF THE
BUTTONS, THE LED'S SCROLL SO FAST AND LIKE CRAZY.
SOME ONE WITH MORE EXPERIENCE ON THIS CAN HELP ME?
THANKS..
PRAVOKA@Y...
Comments
could slow things down with a pause statement. Something like this:
X = 0
LOOP:
IF IN1 = 0 THEN UP_COUNT 'in1 = switch
GOTO LOOP
UP_COUNT:
PAUSE 300 'THIS WILL SLOW THINGS DOWN A BIT
X = X + 1
GOTO LOOP
Pardon my lack of sophistication, I'm certain there is a more elegant
way of doing this, but the PAUSE 300 ( the 300 = 300 milliseconds, or
about 1/3 second) statement will slow things down a bit. Experiment
with the PAUSE statement, try it in different places until you get
the desired button action.
Good Luck
Rich
http://geocities.com/rbc1956
--- In basicstamps@y..., pravoka@y... wrote:
> HI!
>
> I AM NEW ON BASIC STAMPS
>
> REMEMBER THE BNT_JUKE.BAS PROGRAM ON THE BASIC STAMP MANUAL?
>
> WELL, IM YUST TRYING TO ADD A SECOND BUTTON TO SCROLL DE LED'S IN
THE
> OTHER DIRECTION, SO I CAN HAVE ONE BUTTON FOR UP AND OTHER FOR DOWN.
>
> I TRY BUT THE ONLY THING I CAN GET IS , WHEN I PRESS ANY OF THE
> BUTTONS, THE LED'S SCROLL SO FAST AND LIKE CRAZY.
>
> SOME ONE WITH MORE EXPERIENCE ON THIS CAN HELP ME?
>
> THANKS..
>
>
> PRAVOKA@Y...