now am confusing
why you change all time way to uart display
before its working
just need caculation to be change
but keep display to nextion as before ( nextion accept it before )
only change cacullation
why you copy string and display like that ????????
why you change all time way to uart display
before its working
just need caculation to be change
but keep display to nextion as before ( nextion accept it before )
only change cacullation
why you copy string and display like that ????????
- strcpy(msg,"n0.val=");
- LongToStr(rpm,txt);
- strcat(msg,txt);
- UART1_Write_Text(msg);
- nextionWrite255();
- strcpy(msg,"n1.val=");
- FloatToStr(distance,txt);
- strcat(msg,txt);
- //strcat(msg," kms");
- UART1_Write_Text(msg);
- nextionWrite255();
- strcpy(msg,"n2.val=");
- FloatToStr(speedKmsPerHour,txt);
- strcat(msg,txt);
- //strcat(msg," kms/hr");
- UART1_Write_Text(msg);
- nextionWrite255();
- strcpy(msg,"n3.val=");
- FloatToStr(speedMilesPerHour,txt);
- strcat(msg,txt);
- //strcat(msg," miles/hr");
- UART1_Write_Text(msg);
- nextionWrite255();
- Delay_ms(1000);
- }
- }