#define samples 256
signed long temp;
char print;
void readadc(int channel){
temp = 0;
// Take specified number of samples
for(i = 0; i < samples; i++){
temp += Adc_Read(channel);
}
temp /= samples;
temp = (temp * multi) >> 10;
temp -= 1454;
if (temp < 0) LCD_Chr(1,5,'_'); else LCD_Chr(1,5,' '); // Display minus sign if negative temp
print = abs(temp / 1000);
WriteTallNum(print, 6);
print = abs(temp / 100)%10;
WriteTallNum(print, 7);
print = abs(temp / 10)%10;
WriteTallNum(print, 8);
LCD_Chr(2, 9, '.');
print = abs(temp % 10);
WriteTallNum(print, 10);
}