Skip to content

Example code not helpful - draws black on black #50

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

Closed
herrmanthegerman opened this issue Aug 25, 2020 · 2 comments
Closed

Example code not helpful - draws black on black #50

herrmanthegerman opened this issue Aug 25, 2020 · 2 comments

Comments

@herrmanthegerman
Copy link

I assume that the example code given on README.rst should be considered a "smoke test" or "hello world" program to enable the user to check that his/her display can be addressed and is basically working.

That said, with executing display.fill(0) it draws a black background on my black display. I didn't see any change at all.

I suggest to change this to display.fill(1) so it draws some other "color" than black on the display. At least this works for my SSD1306 OLED display.

Does that make sense?

@ladyada
Copy link
Member

ladyada commented Aug 25, 2020

sure, please submit a PR to revise it!

desertsagebrush pushed a commit to desertsagebrush/Adafruit_CircuitPython_SSD1306 that referenced this issue Sep 11, 2020
As discussed in issue adafruit#50, the readme example code only blanks the
screen. To make it match the examples and actually display something,
I've updated it to be identical to the `simpletest` example which it
looks to have been drawn from.
@desertsagebrush
Copy link
Contributor

This should be fixed now, by mirroring the code in examples/ssd1306_simpletest.py.

@ladyada ladyada closed this as completed Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants