cod_fine:
byteAdcbin1 = Dec2Bcd16(ValoreAdc1) ' conversione da decimale a binario
if (ValoreAdc1 == 0) then
portb=255 'led or contraves on pins 32 to 40
else
if (ValoreAdc1 <= 99)
then portb = not byteAdcbin1
end if
end if
if (ValoreAdc1 >= 100) then
ValoreAdc1 == 99 '
end if
if (ValoreAdc1 <= 9) then
LCD_out(1,11,"0") 'wouldnt this have to be [b]LCD_out(1,09,"0")[/b]
end if 'i say the above because you want the 0 before
'the 10th character aka 9th character
bytetostr(ValoreAdc1,txt1)
LCD_out(1,10,txt1) 'assuming that this is the 10th character on screen