Skip to content

SenseBoxOTA: use SSD1306 display if available - #75

Open
noerw wants to merge 16 commits into
masterfrom
ota-oled
Open

SenseBoxOTA: use SSD1306 display if available#75
noerw wants to merge 16 commits into
masterfrom
ota-oled

Conversation

@noerw

@noerw noerw commented Jul 8, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown
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

noerw commented Jul 9, 2022

Copy link
Copy Markdown
Member Author

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