Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jamesmccartney on github.
  • I am jamesmccartney (https://keybase.io/jamesmccartney) on keybase.
  • I have a public key ASBBCflSaL0xcLp8qJ_ctXS7t1Qq7ZJRsBB67pnCYLroCgo

To claim this, I am signing this object:

@jamesmccartney
jamesmccartney / ww_frank4.4-battery_capacity.ino
Last active August 29, 2015 14:23
Example of a simple battery capacity meter using a multimap function with two arrays, one of a basic lipo voltage curve and corresponding capacity percentage.
#include <Wire.h>
#include <Adafruit_GFX.h>
#include "woody_eyes.h"
#include <Adafruit_NeoPixel.h>
#define PIN 32
woody_eyes eye;
int reading;
float voltage;