
Originally Posted by
malc-c
Hi,
I'm trying to use 4 pots to provide a range of values to set the temperature set point in the code featured
http://www.picbasic.co.uk/forum/showthread.php?t=12712
When I use the following code I get a bad expression syntax error on the SetPoint(ADchan) = POTS(ADchan) line
Code:
FOR ADchan = 0 to 3
GOSUB GetADC
POTS(ADchan) = ADvalue
SetPoint(ADchan) = POTS(ADchan)
NEXT ADchan
My logic seems that it gets the adc value, places that in the POTS(0), POTS(1) etc, and then should give SetPoint(0) the same value as POTS(0)
All I really need is a range between 100 and 500 for each SetPoint
Have you tried [square] brackets ?
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks