Hello everyone, I am trying to build an LED screen shaped as a guitar. I want it to be able to display graphics as if it was a square screen.I am using WS2812 strip and a Teensy 3.1.Is there a way to map out each pixel (see picture). For example. from top left pixel nr. 5 is actually the first pixel, and pixel nr.26 is actually pixel nr. 3. would it be possible to map ot each pixel as pixel nr.1 = x5y1 and pixel nr.26 = x3y2. I am not that good at programming, so how would that look in a sketch??
Best regards
Colin Dahlberg
Can you not have all your logic working on a square grid, and only address the guitar shaped ones?
So as a really rough example:
struct led_s
{
// All vars needed here, such as colour, brightness, address etc etc
bool used; //This set to true or false manually in code, true indicates LED is within guitar shape and should be processed
};
led_s led_grid[24][24];
Haha thats pretty cool. Anyway, I think my idea still stands? In code you have the full "square" led map, and you can display whatever you want on that. the led_s struct is what translates the logical position to the actual position and whether or not its even being used.