Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not necessarily bugs, but recommendations… #37

Open
PaintYourDragon opened this issue Oct 28, 2020 · 7 comments
Open

Not necessarily bugs, but recommendations… #37

PaintYourDragon opened this issue Oct 28, 2020 · 7 comments

Comments

@PaintYourDragon
Copy link
Contributor

First: would suggest renaming one or two of the examples, specifically EInkFeatherWing and/or EInkGray29BmpButtonDemo. The grayscale FeatherWing is labeled “2.9" E-Ink FeatherWing” on the back, and running the EInkFeatherWing sketch here almost sorta works, just enough that some guy who’s not the sharpest stick might’ve spent an entire day trying to figure out what’s wrong with his BMP, his Arduino code and/or delved deep into the ImageReader source looking for the “bug” when it was really just that he needed to use the other example that, while it does have “Gray” in the name, “Gray” doesn’t appear on the FeatherWing and “FeatherWing” does not appear in the example name. He doesn’t get out often.

Second: I don’t know if this is a bug/typo or was an intentional choice done for perceptual or legibility reasons, but noticed while I was in the code that on grayscale displays, brightness levels below 0x60 (rather than 0x40) are assigned black. The image I was testing with just happened to be a gray ramp, and with this threshold level the range of dark grays get “the squeeze.” Can’t load the original BMP here because Github, so here’s a JPG substitute:

gray-ramp

And how it appears on the ’Wing:

gray-on-wing

But again, if that’s intentional…maybe it’s to make most line art look right or something…please disregard.

@ladyada
Copy link
Member

ladyada commented Oct 28, 2020

i think i made a hex typo for the level detection. can u post up the bmp of gray-diant?

@PaintYourDragon
Copy link
Contributor Author

Had to ZIP it because Github and file types…

gray-ramp.bmp.zip

@makermelissa
Copy link
Collaborator

makermelissa commented Oct 28, 2020

I merged in a new ThinkInkDisplays demo which will eventually supplant both the EInkFeatherWing and EInkBreakouts demos.

@tannewt
Copy link
Member

tannewt commented Oct 28, 2020

Here is CircuitPython's ramp. We use a luma computation instead of a direct average.
97476038-32a5e680-190b-11eb-919b-f718c8df3f7b

@tannewt
Copy link
Member

tannewt commented Oct 28, 2020

Note that we have slightly different settings at the moment that lead to a darker light gray.

@ladyada
Copy link
Member

ladyada commented Oct 28, 2020

@PaintYourDragon iz up to you - how do you want the grayscale on arduino to matchymatch?

@tannewt
Copy link
Member

tannewt commented Oct 28, 2020

Here is our code: https://github.com/adafruit/circuitpython/blob/main/shared-module/displayio/ColorConverter.c#L54-L59

I can't quite remember where I got that formula. Probably wikipedia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants