Replies: 1 comment
-
The tft.setTextColor() function expects a 16 bit colour value (uint16_t) so the sourve will have to provide an integer colour or you will need to use the code you suggested above. This is where the colour values are defined: |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I build an PV Monitor and my target was to send via MQTT the power value and value color
tft.print(power); ==> Works fine.
but if i try to do the same with the color i get only an error:
tft.setTextColor(color);
Content of color is the string "TFT_GREEN"
Atm i avoid this issue with an if contruct:
But it would be great to be able to send directly the color via MQTT
Can someone give me a tip here?
Beta Was this translation helpful? Give feedback.
All reactions