Welcome to Inkbunny...
Allowed ratings
To view member-only content, create an account. ( Hide )
Family photo
« older newer »
"MILF"
321-1-1.mp4
(MUSIC) Fisk wants cake
[LOUD MUSIC]
Brain: "HEY! I have a new idea about how to draw pictures on Arduino!!!"

Me:



Picture by Falvie (I guess)

Keywords
female 1,059,844, animation 23,137, 3d 22,099, doom 612, programming 117, falvie 34
Details
Type: Video - Animation/3D/CGI
Published: 2 years, 6 months ago
Rating: General

MD5 Hash for Page 1... Show Find Identical Posts [?]
Stats
1,348 views
13 favorites
6 comments

BBCode Tags Show [?]
 
Kagesan
2 years, 6 months ago
The struggle is real.
Iristrasz
2 years, 6 months ago
Clicked because I thought i saw VS Code in the thumbnail.
Wasn't disappointed!
Roobles
2 years, 6 months ago
But.  We never get to see what's inside of 'void loop()'.  I was invested, and you ended it with a cliff hanger.
LITTLEFisky
2 years, 6 months ago
Loop is empty because I execute everything in "void setup()"
Roobles
2 years, 6 months ago
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!
LITTLEFisky
2 years, 6 months ago
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);
    }
New Comment:
Move reply box to top
Log in or create an account to comment.