Click here to Skip to main content
15,885,660 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Visual Studio Survey! Pin
Richard MacCutchan28-Feb-24 22:22
mveRichard MacCutchan28-Feb-24 22:22 
GeneralRe: Visual Studio Survey! Pin
dandy7229-Feb-24 5:40
dandy7229-Feb-24 5:40 
GeneralRe: Visual Studio Survey! Pin
Gary R. Wheeler29-Feb-24 9:36
Gary R. Wheeler29-Feb-24 9:36 
GeneralRe: Visual Studio Survey! Pin
tbim1-Mar-24 4:00
tbim1-Mar-24 4:00 
GeneralRe: Visual Studio Survey! Pin
Stepan Hakobyan1-Mar-24 1:48
professionalStepan Hakobyan1-Mar-24 1:48 
GeneralRe: Visual Studio Survey! Pin
MSBassSinger1-Mar-24 3:52
professionalMSBassSinger1-Mar-24 3:52 
GeneralRe: Visual Studio Survey! Pin
charlieg1-Mar-24 5:10
charlieg1-Mar-24 5:10 
GeneralNeopixels are fun little widgets PinPopular
honey the codewitch28-Feb-24 4:00
mvahoney the codewitch28-Feb-24 4:00 
A neopixel is an RGB LED with a 1 wire daisy chainable interface. You can string many together into panels or single strands, or whatever.

Some of them however, have a strange color model. They have R, G, B, and W(hite) channels.

That caused me some grief because representing colors on these is a bit tricky.

Well, I finally, after looking at some python code someone dreamed up by hand fiddling came up with an RGBW "color model" in my graphics library.

The upshot is I can now for example, pretty faithfully represent a JPG or a GIF (the latter would be fun!) given a large enough panel.

Kinda proud of this. It's an elegant solution.

C++
#include <gfx.hpp>
using namespace gfx;

...
C++
// create a bitmap in the rgbw color format
auto bmp = create_bitmap<rgbw_pixel<32>>({64,64});
if(bmp.begin()) {
    file_stream fs("./test.jpg");
    draw::image(bmp,bmp.bounds(),&fs);
    fs.close();
    // render the bitmap out to leds here...
    free(bmp.begin());
}

Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: Neopixels are fun little widgets Pin
jeron128-Feb-24 4:03
jeron128-Feb-24 4:03 
GeneralRe: Neopixels are fun little widgets Pin
honey the codewitch28-Feb-24 4:48
mvahoney the codewitch28-Feb-24 4:48 
GeneralRe: Neopixels are fun little widgets Pin
jeron128-Feb-24 5:27
jeron128-Feb-24 5:27 
GeneralRe: Neopixels are fun little widgets PinPopular
Alister Morton28-Feb-24 22:53
Alister Morton28-Feb-24 22:53 
GeneralRe: Neopixels are fun little widgets Pin
bryanren29-Feb-24 5:35
bryanren29-Feb-24 5:35 
GeneralRe: Neopixels are fun little widgets Pin
honey the codewitch29-Feb-24 6:41
mvahoney the codewitch29-Feb-24 6:41 
GeneralRe: Neopixels are fun little widgets Pin
Gary R. Wheeler29-Feb-24 9:39
Gary R. Wheeler29-Feb-24 9:39 
GeneralRe: Neopixels are fun little widgets Pin
honey the codewitch29-Feb-24 10:16
mvahoney the codewitch29-Feb-24 10:16 
GeneralRe: Neopixels are fun little widgets Pin
Gary R. Wheeler29-Feb-24 10:30
Gary R. Wheeler29-Feb-24 10:30 
GeneralWordle 984 Pin
Shane010327-Feb-24 16:51
Shane010327-Feb-24 16:51 
GeneralRe: Wordle 984 Pin
Amarnath S27-Feb-24 17:07
professionalAmarnath S27-Feb-24 17:07 
GeneralRe: Wordle 984 Pin
OriginalGriff27-Feb-24 19:48
mveOriginalGriff27-Feb-24 19:48 
GeneralRe: Wordle 984 Pin
ChandraRam27-Feb-24 20:09
ChandraRam27-Feb-24 20:09 
GeneralRe: Wordle 984 Pin
GKP199227-Feb-24 20:59
professionalGKP199227-Feb-24 20:59 
GeneralRe: Wordle 984 - 3 4 me Pin
pkfox27-Feb-24 21:01
professionalpkfox27-Feb-24 21:01 
GeneralRe: Wordle 984 Pin
Sander Rossel27-Feb-24 22:21
professionalSander Rossel27-Feb-24 22:21 
GeneralRe: Wordle 984 Pin
HobbyProggy27-Feb-24 23:33
professionalHobbyProggy27-Feb-24 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.