adafruit / adafruit/Adafruit_CircuitPython_framebuf

add support for GS4_HMSB

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
42
Forks
36
PR merge metrics
No merged PRs in 30d

Description

As displayio can only show 1 SPI display at a time (because FourWire blocks the SPI bus when 1 display is initialized), I cannot add multiple SSD1327 oleds to my circuitpython project using displayio.
So I have to use framebuf. The SSD1327 oled drivers are GS4_HMSB based. I can get multiple display to work in micropython, but not in circuitpython because framebuf doens't have support for GS4_HMSB.

Would it be possible to add support for this?
I found the c implementation in micropython, but I don't know how to convert this to python language.
see https://github.com/micropython/micropython/blob/master/extmod/modframebuf.c for c implementation.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing framebuf implementation in this repository and the referenced MicroPython implementation at extmod/modframebuf.c, focusing on GS4_HMSB behavior. Add support for the requested format and verify that SSD1327 displays can use it without breaking existing framebuf formats.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.