IdleHandsProject / pixopixel

PIXO Pixel is a 16 x 16 RGB LED display that runs off of an ESP32
GNU General Public License v3.0
62 stars 16 forks source link

Image Helper Functions + Example #9

Open c0de-fox opened 6 years ago

c0de-fox commented 6 years ago

Taking some inspiration from the examples, here is a collection of functions that (as of right now) provide the following:

chunkysteveo commented 6 years ago

Nice!

c0de-fox commented 6 years ago

Now based on the current master branch.

This adds a struct that can be used to globally interact with the LEDs. Currently it defines an active state and custom RGB values.

randChangePxl has been fixed and given a massive efficiency boost.

This entire example can be loaded into your pixo-pixel to see most of the visual aspects.

chunkysteveo commented 6 years ago

A very cool addition to the PIXOPixel and it's helped me a lot in how the pixels can be mapped etc. Just a question - where do you generate the RGB array from an image, from? Have been looking online and can't find a good resource to create the array? There's a lot that create the HEX codes, but can't find the {R,G,B} style? thanks.

chunkysteveo commented 6 years ago

SORRY, i'm a dumbass!! Just remembered Sean said about a python script that converts images to the array... and there it is in the root of the repo, woops! Great PR for the project though, may be worth nudging @hodginsa / @IdleHandsProject to pull these into the master..?