/* * The display is a lin-log chart of the charge over time. * Time is on a log scale. * The top pixel line is 60s from now. * The bottom of the window is 1h from now. * * display outputs, per line: * * Remaining: | Empty: | Degraded: * blue | black | dimgrey discharging * green | black | dimgrey charging * cyan | black | dimgrey charged * grey | black | dimgrey charging&discharging! * lightgrey | black | dimgrey none of the above * blue | red | dimgrey discharging - low! * green | red | dimgrey charging - low * cyan | red | dimgrey charged - low [1] * grey | red | dimgrey charging&discharging, low [1] * ... darkgreen ... no batteries present * ... yellow ... error * * [1] battery must be quite badly degraded */ /* * Copyright (C) 2004 Ian Jackson * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3, * or (at your option) any later version. * * This is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this file; if not, consult the Free Software * Foundation's website at www.fsf.org, or the GNU Project website at * www.gnu.org. */