Skip to content

Refactor OLED display code for better performance#29

Open
Macleykun wants to merge 4 commits intomklements:mainfrom
Macleykun:main
Open

Refactor OLED display code for better performance#29
Macleykun wants to merge 4 commits intomklements:mainfrom
Macleykun:main

Conversation

@Macleykun
Copy link
Contributor

@Macleykun Macleykun commented Feb 8, 2026

Used ChatGPT to convert my bash commands into pyutil like any sane person would. Tested out on local pi!

Also rounded off memory so it lines up more often with cpu and storage.

Uptime now shows properly minutes, then hours:minutes and then days hours. Also tested and saw 2d 8h which is nicer :)

these can be closed aswell:
#22
#20

Used ChatGPT to convert my bash commands into pyutil like any sane person would.
Tested out on local pi!
@Macleykun
Copy link
Contributor Author

Macleykun commented Feb 13, 2026

IMG_1052

@Macleykun
Copy link
Contributor Author

ready to merge @mklements !
Had a bit of a look if we could make the image smaller, but the main culprit is RPi.GPIO not being maintained anymore and thus not having a native compiled version for the rpi 4b, but the lib is used in adafruit-blinka which is used for i2c communication.

Updated the script to use monotonic uptime instead of time.time() for uptime calculation.
@Macleykun
Copy link
Contributor Author

Not sure if this works but, this PR doesn't fix these issues, but they can be closed regardless as they have already been fixed/answered:
#20
#22

@Macleykun Macleykun changed the title Refactor OLED display code for better performance Refactor OLED display code for better performance | #22 #20 Feb 15, 2026
@Macleykun Macleykun changed the title Refactor OLED display code for better performance | #22 #20 Refactor OLED display code for better performance Feb 15, 2026
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.

1 participant