Also you did not declare "Advalue" as a variable either.
Type: Posts; User: Tabsoft; Keyword(s):
Also you did not declare "Advalue" as a variable either.
Your implementation of Mel's sort algorithm has a problem in it.
After you read the ADC values in the "For CounterA = 0 to 9" loop, CounterA equals 10.
You then issue the "Gosub GetSort"...