value in mV
#TODO fix ghost caractere when under100 mV
This commit is contained in:
parent
157655cbfe
commit
25d8773628
@ -72,11 +72,12 @@ void main(void)
|
||||
|
||||
while (1)
|
||||
{
|
||||
uint16_t value;
|
||||
float value;
|
||||
|
||||
value = ADC_GetConversion(voltage);
|
||||
char* msg;
|
||||
sprintf(msg, "%i", value);
|
||||
value =(float)( ADC_GetConversion(voltage)/19.859);
|
||||
char msg[16];
|
||||
sprintf(msg, "Value : %3.1f mV", value);
|
||||
// LCD_2x16_WriteCmd(0x01); // clear display
|
||||
|
||||
LCD_2x16_WriteMsg(msg,0);
|
||||
|
||||
|
Reference in New Issue
Block a user