V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ygmpkk

Raspberry PI 如何获取电池信息呢

  •  
  •   ygmpkk · Oct 14, 2013 · 5316 views
    This topic created in 4592 days ago, the information mentioned may be changed or developed.
    在Linux里面,获取电池的信息在这里可以看到:

    /proc/acpi/battery/BAT0/

    RPI没有ACPI,如何获取电池信息呢,

    在Stackoverflow有人找到了Linux的内核提供了header信息,

    http://stackoverflow.com/questions/4858657/how-can-i-obtain-battery-level-inside-a-linux-kernel-module
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3432 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:29 · PVG 19:29 · LAX 04:29 · JFK 07:29
    ♥ Do have faith in what you're doing.