Matrix M4 + 64 + 32 Matrix

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
handful
 
Posts: 3
Joined: Sun Jul 17, 2022 12:42 pm

Matrix M4 + 64 + 32 Matrix

Post by handful »

Hi,

I have a working setup, and everything works fine.
I have one question though:

With Circuitpython, is it possible to access / use RGB colors - > eg: (155, 10, 122) for a pixel?
I want to be able to set all pixels to certain RGB colors in a loop, instead of the simple integer -> palette in all Adafruit examples.

Is that possible? Or only available when work with C / C ++ and other libraries like fastLED etc?

Thanks in advance,

Marcelo

User avatar
handful
 
Posts: 3
Joined: Sun Jul 17, 2022 12:42 pm

Re: Matrix M4 + 64 + 32 Matrix

Post by handful »

Have a simpler way of asking the question:

Is there an equivalent to matrix.drawPixel(x,y,0,0,0) in Python?

Thanks Folks!

M

User avatar
adafruit_support_carter
 
Posts: 29158
Joined: Tue Nov 29, 2016 2:45 pm

Re: Matrix M4 + 64 + 32 Matrix

Post by adafruit_support_carter »

In general, no. You'll need to setup the colors in a palette and then use the palette indices to set the pixel colors:
https://learn.adafruit.com/circuitpytho ... raw-pixels

User avatar
handful
 
Posts: 3
Joined: Sun Jul 17, 2022 12:42 pm

Re: Matrix M4 + 64 + 32 Matrix

Post by handful »

Ok Thanks!

I will jump to other libraries then, I don't think it will be wise to do a massive array for that :)

Best

Marcelo

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”