The index, data[0], will give you a value between [0, 100], indicating the battery level. I'm not sure why you're getting a stuck 0 though. Was the battery level reporting other values before and what values do you get if you plug the board in? It's possible your battery is almost out of charge, which will result in a 0 being returned.
I am having a similar problem. I have soldered the battery on, but the battery level always reports 0, and the battery doesn't appear to charge when plugged in via USB. Is this a known issue? Do I have a defective battery, or board?
Does the MetaWear work at all with battery, but no usb? If not, then it is likely you have a defective battery. Did you buy the battery from us or was it an after-market part?
Comments