I have the Arduino MEGA and an adafruit touch screen 2.8 inches.
My goal is to draw a pixel given a specific RGB
I am using the
TFT.h libraries to draw and control the touch screen. I noticed the
drawPixel function given, in which it takes in three parameters and draws the pixel:
But, I am trying to draw a pixel with specific a RGB. So instead, the function would ideally need 5 parameters instead of 3, x, y, and then R, G, and B:
I tried putting in a number as the third parameter and not
ILI9341_COLOR, and the screen just prints blue:
Is there a function that allows me to draw RGB pixels specifically? Thanks for any help!