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

Add support for greyscale SSD1362 OLED (256x64) #271

Merged
merged 13 commits into from
Jan 19, 2020
Merged

Conversation

rm-hull
Copy link
Owner

@rm-hull rm-hull commented Jan 18, 2020

Supercedes #267
Fixes #268

TODO

  • Driver code
  • Add documentation
  • Add PDF datasheet
  • Regression tests
  • Add ssd1362.conf to luma.examples
  • Add entry to changelog
  • Ready for review

Notes

Breakout board and SSD1362 kindly supplied by @xcarcelle

ssd1362.conf settings:

--display=ssd1362
--interface=spi
--width=256
--height=64
--spi-bus-speed=16000000

Breakout board pinouts

image

image

OLED Pin OLED Name RPi Pin RPi Function Remarks
1 CS P01-24 GPIO 8 (CE0) Chip Select
2 RST P01-22 GPIO 25 Reset
3 DC P01-18 GPIO 24 Data/Command
4 SCLK P01-23 GPIO 11 (SCLK) Serial Clock
5 SDA P01-19 GPIO 10 (MOSI) Serial Data
6 GND P01-20 GND Ground
7 VCC P01-17 3V3 +3.3V Power

Reference

@rm-hull rm-hull changed the title Add support for greyscale SSD1362 OLED (256x64) [WIP] Add support for greyscale SSD1362 OLED (256x64) Jan 18, 2020
@rm-hull
Copy link
Owner Author

rm-hull commented Jan 18, 2020

Looks like there is some offsetting, mirroring and nibble alignment needed, but it is looking promising:
image

Starting to get recognisable shapes now .. this is what it should look like (but in greyscale)
luma_000002

@rm-hull
Copy link
Owner Author

rm-hull commented Jan 18, 2020

Offset and greyscale table need adjusting:
image

On/Off work ok, but contrast doesn't work yet, and I think I'm sending it more bytes than it can handle, causing the offset

@rm-hull rm-hull changed the title [WIP] Add support for greyscale SSD1362 OLED (256x64) Add support for greyscale SSD1362 OLED (256x64) Jan 19, 2020
README.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@thijstriemstra thijstriemstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some small things, other than that, looks good!

@rm-hull rm-hull merged commit 8f5a24c into master Jan 19, 2020
@rm-hull rm-hull deleted the feature/ssd1362 branch January 19, 2020 21:33
@rm-hull
Copy link
Owner Author

rm-hull commented Jan 20, 2020

3.4.0 released to Pypi with this change included: https://pypi.org/project/luma.oled/3.4.0/

@nikitalita
Copy link

@thijstriemstra @xcarcelle Where did you get that breakout board? I can't find that for sale anywhere.

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

Successfully merging this pull request may close these issues.

Trying to add support for the ssd1362 (ELW2106AA) screen
4 participants