Displaying text in sprite as HEX #2329
Unanswered
beng2k
asked this question in
Q&A - Sprites
Replies: 1 comment 1 reply
-
You can use spr.setCursor(x, y); and spr.print(value,HEX); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently receiving data in decimal form and being written to an array.
I can display in serial by using print(dataValues[1], HEX)
How can I display the text in the sprite in HEX format?
Also noticed when the data changes from 4 digits to 3 digit, the 4th digit remains. Is there something I am missing for only showing the current value?
void updateARBID() { frameid.setTextColor(TFT_WHITE, TFT_BLUE, true); frameid.drawNumber(dataValues[1], 40,20,2); frameid.pushSprite(20, 40); delay(200); }
Beta Was this translation helpful? Give feedback.
All reactions