1 of 1 people found this helpful
From what you wrote both LCD_PrintNumber() and LCD_PrintDecUint16() are printing in decimal.
as 2A in hex is 42 in decimal.
If you want to have control over format, maybe you can try...
#define STR_LEN 32 // choose appropriate number for your usage
char str[STR_LEN] ;
int8 sensorRead ;
sensorRead = -20-((205 - spi_read(0x26))/2) ; // I just referenced your formula
snprintf(str, STR_LEN, "%d", sensorRead) ; // you can have something like "value = %d" for the format