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

SSD1306 i2c example #402

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Homo-carbonis
Copy link

This is a copy of the board_ssd1306 example using i2c instead of spi.
I also made some changes to the twi hook in ssd1306_virt and corrected the Set Line command according to the datasheet.

- Make ssd1306_twi_hook handle the Co bit and not keep an unncessary
index.
- Correct SSD1306_VIRT_SET_LINE command not to expect a parameter.
This sends the same commands and data as board_ssd1306 but using i2c
instead of spi.
@buserror
Copy link
Owner

Could be have something that at least share some of the files? I really hate having duplicate copies of stuff, just because the transport changes

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.

2 participants