You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: BB_SPEED_BITBANG scope on parallel panels (renders black on M5PAPERS3) #39
On BB_PANEL_M5PAPERS3, selecting BB_SPEED_BITBANG renders black frames:
the bit-bang path appears clear-oriented rather than a slower
general-purpose drive. That is fine if intended, but nothing in the docs
says so — we lost a diagnosis cycle assuming it was a slow-but-safe
fallback. A one-liner in the README/API docs on what BITBANG is for (and
what it is NOT for) would help.
I'm sorry my change affected your setup. Can you explain what you mean by a "diagnosis cycle" and why you would choose to use bit-bang output for your PaperS3? Why would you assume that it's a "slow-but-safe" fallback? There is no benefit to going slower on parallel displays. In fact, it makes the output much darker and can push the pixels too hard. Where do you want this info to be documented? Can you create a PR for this doc change?
"Diagnosis cycle": in our setup that's edit → build → flash a remote unit →
push a test image → have a human look at the panel. It cost one cycle here, so
roughly ten minutes of machine time plus the wait for a human verdict. My issue
text overstated it.
Why I reached for bit-bang: the commit that added it mentions a spurious
clock and corrupted pixels at the start of each line, which matched almost word
for word the artifact I was chasing. I read it as the intended escape hatch from
the LCD peripheral rather than as a speed setting.
"Slow but safe" is my wrong phrasing — you're right that it was never a
coherent model, since there is no slower pixel clock involved, just a repeated
pattern. What led me there: the public header comment reads "Initialize the
panel with this bus speed to use bit bang logic", while the clear-only caveat
lives further down in a comment inside bbepWriteRow. In fairness, my black
frame was a single observation on a firmware that had its own pin conflict at
the time — but it is what the code predicts anyway: our test image is vertical
bands with black on the left, so the repeated first 16 bits are black on every
row.
Doc PR, no code change — I'll put the scope note where a user meets the
constant first (the BB_SPEED_BITBANG define in FastEPD.h), add one
cross-reference sentence on the init path, and a line in README.md; drop that
last hunk if you'd rather keep the README pointing at the Wiki. Since I can't
PR the Wiki, I'll include ready-to-paste markdown in the PR body for the initPanel(int iPanelType, uint32_t u32Speed = 0) signature and a note
distinguishing BB_SPEED_BITBANG from setBitBang(bool) (the software-I2C
control bus), which is easy to confuse. Happy to reshape any of it.
Doc PR is up: #40 (comments only, no code). I dropped the README hunk I'd offered — the README defers API detail to the Wiki, so a caveat there felt out of place. The PR body carries ready-to-paste markdown for the two Wiki edits, since u32Speed isn't documented there at all yet.
Activity
bitbank2 commentedon Sep 3, 2026
I'm sorry my change affected your setup. Can you explain what you mean by a "diagnosis cycle" and why you would choose to use bit-bang output for your PaperS3? Why would you assume that it's a "slow-but-safe" fallback? There is no benefit to going slower on parallel displays. In fact, it makes the output much darker and can push the pixels too hard. Where do you want this info to be documented? Can you create a PR for this doc change?
AsLY4 commentedon Sep 9, 2026
Thanks — and yes, I'll send the doc PR.
"Diagnosis cycle": in our setup that's edit → build → flash a remote unit →
push a test image → have a human look at the panel. It cost one cycle here, so
roughly ten minutes of machine time plus the wait for a human verdict. My issue
text overstated it.
Why I reached for bit-bang: the commit that added it mentions a spurious
clock and corrupted pixels at the start of each line, which matched almost word
for word the artifact I was chasing. I read it as the intended escape hatch from
the LCD peripheral rather than as a speed setting.
"Slow but safe" is my wrong phrasing — you're right that it was never a
coherent model, since there is no slower pixel clock involved, just a repeated
pattern. What led me there: the public header comment reads "Initialize the
panel with this bus speed to use bit bang logic", while the clear-only caveat
lives further down in a comment inside
bbepWriteRow. In fairness, my blackframe was a single observation on a firmware that had its own pin conflict at
the time — but it is what the code predicts anyway: our test image is vertical
bands with black on the left, so the repeated first 16 bits are black on every
row.
Doc PR, no code change — I'll put the scope note where a user meets the
constant first (the
BB_SPEED_BITBANGdefine inFastEPD.h), add onecross-reference sentence on the init path, and a line in
README.md; drop thatlast hunk if you'd rather keep the README pointing at the Wiki. Since I can't
PR the Wiki, I'll include ready-to-paste markdown in the PR body for the
initPanel(int iPanelType, uint32_t u32Speed = 0)signature and a notedistinguishing
BB_SPEED_BITBANGfromsetBitBang(bool)(the software-I2Ccontrol bus), which is easy to confuse. Happy to reshape any of it.
AsLY4 commentedon Sep 9, 2026
Doc PR is up: #40 (comments only, no code). I dropped the README hunk I'd offered — the README defers API detail to the Wiki, so a caveat there felt out of place. The PR body carries ready-to-paste markdown for the two Wiki edits, since
u32Speedisn't documented there at all yet.docs: document BB_SPEED_BITBANG's clear-only scope