Oh! The video cut out so abruptly, before you finished instantiating the Pixel, that I thought there could have been much more.
Honestly, there's a lot going on in here that I don't fully understand. Like why it looks like you're offsetting the x-axis of the canvas based on whether the pixel has a red, green, or blue value? (I feel like I must be getting that wrong.) And how you're getting the initial inputs? Like it looks as though you have three different pixel grids as input, representing the color channels of the source image? I'm. Not really sure. I don't have a good understanding of what the display's capabilities are, how its API works, or what the intended finished goal is.
But. All of this is pretty cool!
Oh! The video cut out so abruptly, before you finished instantiating the Pixel, that I thought ther
I have separated the image into red, green and blue channels and saved them as arrays with HEX values of each pixel. I made the class "Pixel" with private vars for red, green, blue colors, and XY coordinates. It had function that draws 3 pixels in a row (like subpixels).
void drawPixel() { if(this-r > 0) { TFTscreen.drawPixel(x, y, ST7735_RED); } if(this->g > 0) { TFTscreen.drawPixel(x+1, y, ST7735_GREEN); } if(this->b > 0) { TFTscreen.drawPixel(x+2, y, ST7735_BLUE); }
I have separated the image into red, green and blue channels and saved them as arrays with HEX value