RossW
- 30th July 2004, 21:52
Hi all,
I want to write a program that takes the input of the current setting of a pot to use in calculating the pause value when blinking an LED. For example:
delay var WORD
Loop:
HIGH GPIO.0
PAUSE delay
LOW GPIO.0
GoTo Loop
I don't want to constantly read the pot value, both for performance considerations and to eliminate 'noise' that might keep adjusting the delay value.
Does anyone have an example of the above?
Cheers,
Ross
I want to write a program that takes the input of the current setting of a pot to use in calculating the pause value when blinking an LED. For example:
delay var WORD
Loop:
HIGH GPIO.0
PAUSE delay
LOW GPIO.0
GoTo Loop
I don't want to constantly read the pot value, both for performance considerations and to eliminate 'noise' that might keep adjusting the delay value.
Does anyone have an example of the above?
Cheers,
Ross