Interstate75 color problems

pimoroni-pico-v1.21.0-micropython.uf2

I have an Interstate 75 hooked up to a p3 64x64 panel, and although it works, the colors are clearly wrong. I tried the following:

i75 = Interstate75(display=Interstate75.DISPLAY_INTERSTATE75_64X64, color_order=Interstate75.COLOR_ORDER_RBG)

but i get AttributeError: type object ‘Interstate75’ has no attribute ‘COLOR_ORDER_RBG’

I’m probably missing something obvious, but for now I just can’t see it. help please?

There is an stb_invert that is supposed to fix glitches with the top row.
I don’t think it will fix your issue, but won’t hurt to try it.

i75 = interstate75.Interstate75(display=interstate75.DISPLAY_INTERSTATE75_64X64, stb_invert=True)

thanks for your response. unfortunately i had already tried that, and as you suspected, no joy.

I “think” it’s a panel issue? I could have sworn there was another similar post but I can’t find it via search?
@hel might be able to help?

1 Like

I have an Interstate 75 W, with two 64x32 panels in a 64x64 configuration. I’ve had mine for a while now. I had a quick look at the Pico Graphics readme and didn’t see any way to change the RGB?

It kind of surprised me as I had to do this on my Plasma Stick. My LED strip is GRB, not RGB.

In the mean time you can likely correct for it in your code. It will be a bit of a PITA. For me Red would have been (0, 255, 0) instead or (255, 0, 0) if I hadn’t been able to do the one code edit.

1 Like

the similar post i saw, and that’s where i got the color_order bit from. it was allegedly added fairly recently and works if you use the hub75 module directly. but i think you’re right i need to bite the bullet and get a better panel. i just had this one lying around. :(

If you go here and look at the interstate75.py file, you will see color order code.
pimoroni-pico/micropython/modules_py/interstate75.py at main · pimoroni/pimoroni-pico · GitHub
instead of
, color_order=Interstate75.COLOR_ORDER_RBG
try just adding
,COLOR_ORDER_RBG
or
,COLOR_ORDER_GRB
etc.

1 Like

So i tried that and understandably it complained about a positional argument following a non-positional one, so i also tried adding all the arguments as positional (as per the class init), but no joy:
TypeError: function takes 4 positional arguments but 5 were given

which can only lead me to conclude that the version of interstate75.py included in the micropython uf2 is not the same as the one in github currently.

or am i just being dumb?

Your starter that I am, lol. I’m lost with that type of stuff.
You can e-mail tech support for detailed help.
I’ve done it a few times when I’ve hit a dead end.

Contact Us for Raspberry Pi Technical Support - Pimoroni

1 Like

i75 = Interstate75(display=Interstate75.DISPLAY_INTERSTATE75_64X64, color_order=Interstate75.COLOR_ORDER_RBG) as per the learn guide should indeed be the way to go (and should also work with PicoGraphics) - please can you post your full code and the full error?

Enclosing the code in triple backticks (```) will make it display nicely.

2 Likes

The code below seems to run without error for me on v1.22.2 of pimoroni-pico flavoured MicroPython. I’m working from home today though so don’t have any LED matrices to try :)

from interstate75 import Interstate75

i75 = Interstate75(display=Interstate75.DISPLAY_INTERSTATE75_64X64, color_order=Interstate75.COLOR_ORDER_RBG)
graphics = i75.display

MAGENTA = graphics.create_pen(255, 0, 255)
BLACK = graphics.create_pen(0, 0, 0)
WHITE = graphics.create_pen(255, 255, 255)

graphics.set_pen(BLACK)
graphics.clear()

graphics.set_pen(MAGENTA)
graphics.text("hello", 1, 0, scale=1)
graphics.set_pen(WHITE)
graphics.text("world", 1, 6, scale=1)
i75.update(graphics)
1 Like

Hi there. Thanks for confirming. In the end I did a factory reset and Installed v1.22.2 and now it works fine.

2 Likes

Got it sorted in the end. Thanks for taking the time to help :)

1 Like