In a project I am doing I need to represent data on a 1.8 inch TFT screen. The data I want to graph is decimal, that is, of type "float". Before being able to graph them, it is necessary to know how many pixels correspond to each value. I used the "map()" function for this, but it doesn't render them well for me. I have read that this function treats numbers as type "int". Is it possible that they are not being represented correctly by making the equivalence with this function? Does it also have to do with screen resolution? Thank you!
map is an integer function.
You forgot to post your code
In the end it seems it was due to a problem related to dynamic memory. Being too full caused instability. That is why the data was not graphed well on the screen.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.