How to display battery status on OLED expansion?
This post is deleted!
crispyoz last edited by crispyoz
@Antony When you say "status" do you mean replicating the LED indicator?
To read the battery status, you can take a look at the power-dock2 script in /usr/bin
Have you learned how to display text on the OLED?
Thanks for reaching out! Yeah, I mean to display the battery status onto the oled expansion.
And yes, I know how to write using the terminal and in Python I have been using
oledExp.driverInit() to initialize
oledExp.write() to write.
Can I use print() to display text on the oled expansion or is it just oledExp.write() function that I can use. I have not been able to get print() to work.
Thank you so much for your time, I appreciate it.
crispyoz last edited by
@Antony I don't see any print function in the OLED python module, but there is writeChar and writeByte functions. You can the docs here: