How I can show a float on the LCD for my temperature measurement?
this is my code, I'm using the function HalLcdWriteValue:
medicion_temp void (void)
{
gradosC float;
TR0 | = 0x01, / / Must be modified prior TR0 to ATEST,
ATEST | = 0x01 / / P0_0 and P0_1 Otherwise Forced with 0
uint16 tempSample = HalAdcRead (HAL_ADC_CHN_TEMP, HAL_ADC_RESOLUTION_12);
TR0 & = ~ 0x01;
ATEST & = ~ 0x01;
gradosC = tempSample * 0.016891;
HalLcdWriteValue void (gradosC, 10, HAL_LCD_LINE_1);
}
But it is coming out this error: "expected an identifier" and I do not know why