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

SenseBoxOTA: use SSD1306 display if available #75

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

Conversation

noerw
Copy link
Member

@noerw noerw commented Jul 8, 2022

This adds support for the SSD1306 display, showing status information on the OLED, if it is connected.
Depends on #74.

oled.mp4

Note that this adds around 10kb to the compiled OTA bootloader, getting quite close to the reserved 64kb.
This means that adding more functionality (eg checksumming, /ping endpoint, ...) or updating libraries likely requires spending time on optimizing the bootloader size (there should be plenty of room for optimization), or growing the reserved bootloader space by 8kb (meaning currently flashed OTA bootloaders will be incompatible with the bigger one, and only 176kb are left for user code).

Billable time spent working: 2h
Time spent playing with the hardware: 3h ❤️

@mariopesch
Copy link
Member

@noerw its fantastic! :-) The display is working an also the build script is working fine. I tried some changes and its working flawless.

Maybe I'll try to change the Display library to https://github.com/greiman/SSD1306Ascii and see if we can save some space.

@noerw
Copy link
Member Author

noerw commented Jul 9, 2022

u8x8 also might be an option; last time i used it it was pretty small.
Much more savings could be made by replacing the Wifi101 lib, but I guess there still is no replacement for this.

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