Controlling OpenPandora LEDs in Python

For those who don’t know me, I don’t like cell phones for a variety of reasons… but I do want a pocket computer, so I picked up what is essentially a pocket laptop made of cellphone parts named the OpenPandora.

Like normal-sized laptops, this nifty little device has a bunch of LEDs for indicating whether the WiFi is on, whether the battery is charging, and so on. Unlike many laptops, it was pretty easy to find documentation on how to control them in software.

For any other OpenPandora users who might be interested, here’s a little demo and helper library which makes the left bank of LEDs behave like KITT‘s scanner (without fading) while the charging indicator blinks.

I didn’t demo the partial brightness support on the power and charging LEDs but the helper library supports it.

The module docstring includes a few suggestions for where to go from here if you want to try something a little more challenging.

CC BY-SA 4.0 Controlling OpenPandora LEDs in Python by Stephan Sokolow is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This entry was posted in Geek Stuff. Bookmark the permalink.

One Response to Controlling OpenPandora LEDs in Python

  1. JZ says:

    +1 for less usage of mobile phone..
    haven’t change my samsung phone over 2 years as i don’t see the need to keep changing it.. the fanciful screen just drain your battery even more..

    btw, thx for introducing OpenPandora..

Leave a Reply

Your email address will not be published. Required fields are marked *

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution under the same terms as the associated post.