How to display battery status on OLED expansion?
-
This post is deleted!
-
@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?
-
@crispyoz
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 initializeoledExp.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.
-
@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:
https://docs.onion.io/omega2-docs/oled-expansion-python-module.html#oled-expansion-python-module