Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. [tj] (tj@mastodon.social)'s status on Thursday, 21-Dec-2017 09:47:37 EST [tj] [tj]

    An early christmas present from me to you (mostly @alexshendi)

    A C program to read the SOCVF register on the max17042 in the GPD Pocket. This will give you an approximate percentage battery left.

    A real driver is coming, I didn't want to leave for the holidays without passing this on.

    Readings aren't very accurate and this isn't really tested, but better than a surprise shutdown.

    You need to load ig4 and iic kernel modules, then run it with permission to /dev/iic0

    https://github.com/adventureloop/gpdpocket/blob/master/max-fuelgauge.c

    In conversation Thursday, 21-Dec-2017 09:47:37 EST from mastodon.social permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.