Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

18F4620 Analog in puzzle in Oshonsoft Basic

$
0
0
Hi,
I've added 5x POT inputs to a long program, but they're acting strangely.
Here's the CODE section:
'_____________________________________________________________________
Adcin 0, ch1 'Read AILERON
Adcin 1, ch2 'Read ELEVATOR
Adcin 2, ch3 'Read THROTTLE
Adcin 3, ch4 'Read RUDDER
Adcin 4, ch5 'Read SPARE

WaitMs 50
'rled = 0

'If ch1 > 250 Then rled = 1
'If ch2 > 128 Then rled = 1
'If ch3 > 128 Then rled = 1
'If ch4 > 128 Then rled = 1
If ch5 > 50 Then rled = 1 'Only testing this...

18F4620 Analog in puzzle in Oshonsoft Basic

Viewing all articles
Browse latest Browse all 4924

Trending Articles