Repository navigation
HDMI display support for raspberry pi based platforms - #610
Conversation
|
Will also fix this while in this area |
|
BirckPi3 doesn't have a display. |
|
Poorly worded title on my part..."HDMI display support for raspberry pi based platforms" maybe? Even then though the code itself is checking that |
|
Ah, so really the Raspberry Pi HDMI out. |
|
This traceback I am not familiar with the FbMem history, anyone know why we have this |
|
That Not sure how it is supposed to work exactly. This PR looks good after that's sorted out though. |
| elif self.var_info.bits_per_pixel == 16: | ||
| im_type = "RGB" | ||
| elif self.platform == "ev3" and self.var_info.bits_per_pixel == 32: | ||
| elif ((self.platform == "ev3" or self.platform in platforms_with_hdmi_display) and |
There was a problem hiding this comment.
I don't think we need to check for "platform" by name here at all. Just check for 32 bits per pixel and not EV3. im_type = "L" means grayscale, so I don't think we want this for HDMI otherwise you won't be able to do anything in color.
Maybe something like this?
elif self.platform == "ev3" and self.var_info.bits_per_pixel == 32:
im_type = "L"
elif self.var_info.bits_per_pixel == 16 or self.var_info.bits_per_pixel == 32:
im_type = "RGB"
There was a problem hiding this comment.
Whether L or RGB is used for brickpi3 the screen has this yellow/green color

via
display = Display()
display_font = "luBS24"
x_grid = 4
y_grid = 4
display.text_grid("BAR", clear_screen=True, x=x_grid, y=y_grid, font=display_font)
display.update()
sys.exit(0)
Not a huge deal at this point as any display at all is a step in the right direction but I haven't figured out yet where this color is coming from.
There was a problem hiding this comment.
I recall there's a code path which uses something like a 5-6-5 bit width pattern... is it possible that that's somehow involved?
You could probably get a good clue about what's going on if you looked at a dump of the raw data it's writing to the framebuffer.
From reading this: It sounds like we should not be using |
| """Close the FbMem framebuffer memory object.""" | ||
| self.mmap.close() | ||
| FbMem._close_fbdev(self.fid) | ||
|
|
There was a problem hiding this comment.
Have been testing on an EV3 and all seems fine without this __del__
|
No luck figuring out where that green/yellow color is coming from. It isn't that important to me right now and this is a step in the right direction so am going to go ahead and merge it. We can dig into the green/yellow thing later if it becomes a more significant issues for someone. |
No description provided.