Couleur texte écran TFT

Bonjour,
J'ai un petit problème sur mon écran TFT.
J'utilise la librairie adafruit_GFX.
Quand je souhaite par exemple faire un rectangle arrondi gris.
j'écris ce bout de code : tft.fillRoundRect(123,150,70,31,12,0x648B85);
Mais ça ne m'affiche pas un rectangle gris mais un rectangle "marron" j'aimerais savoir pourquoi et ce que j'oublie pour afficher correctement ma couleur ?
Vous remerciant

Ca doit faire gris cette couleur ? (Il me semble d’ailleurs qu’on passe un uint16_t)

Edit:
La doc dit

For color-capable displays, colors are represented as unsigned 16-bit values. Some displays may physically be capable of more or fewer bits than this, but the library operates with 16-bit values…these are easy for the Arduino to work with while also providing a consistent data type across all the different displays. The primary color components — red, green and blue — are all “packed” into a single 16-bit variable, with the most significant 5 bits conveying red, middle 6 bits conveying green, and least significant 5 bits conveying blue. That extra bit is assigned to green because our eyes are most sensitive to green light. Science!

lcds___displays_colorpack.png

Cf Overview | Adafruit GFX Graphics Library | Adafruit Learning System

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.