I'm working on a project at school and I have to do some calculations using Pascal and show it on an LC Display. My calculations are the following:
adc_rd := ADC_read(2);
textlong := adc_rd*5;
adc_rd := textlong/1023;
decim_i := 0.4*adc_rd;
decim_ii := pow(2.71828,decim_i);
decim_i := 8.9116*decim_ii;
FloatToStr_FixLen(decim_i, text4, 6);
Lcd_Chr(2,6,text4);
decim_i and decim_ii are reals.
I get the following error on the last line Lcd_Chr(2,6,text4);:
Incompatible types ("complex type" to "simple type")
Does anyone know how to fix it?
Text4is a string, butLcd_Chrexpects a single character. Loop through all characters in the string instead. - LU RD