You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.
Hi. I see that text can be set to NextionText as char[] or int value only. What about float?
P.S. I did not find any solution for Nextion displays for this in C++. For this now I use this code. void writeFloatToDisplay(NextionText target, double value) { char buffer[10]; dtostrf(value, 5, 2, buffer); target.setText(buffer); }
The text was updated successfully, but these errors were encountered:
Hi. I see that text can be set to NextionText as char[] or int value only. What about float?
P.S. I did not find any solution for Nextion displays for this in C++. For this now I use this code.
void writeFloatToDisplay(NextionText target, double value) { char buffer[10]; dtostrf(value, 5, 2, buffer); target.setText(buffer); }
The text was updated successfully, but these errors were encountered: