Skip to content

Arduino library to sense Seeed Xiao NRF52840 Battery voltage or charging state on non-Mbed 1.0.0 firmware

Notifications You must be signed in to change notification settings

honvl/Seeed-Xiao-NRF52840-Battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Seeed-Xiao-NRF52840-Battery

Arduino library to sense Seeed Xiao NRF52840 Battery voltage or charging state on non-Mbed 1.0.0 firmware

Examples:

#include <Arduino.h>
#include <bluefruit.h>
#include <xiaobattery.h>

Xiao battery;
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
// Serial.println(battery.IsChargingBattery());
Serial.println(battery.GetBatteryVoltage());
}

About

Arduino library to sense Seeed Xiao NRF52840 Battery voltage or charging state on non-Mbed 1.0.0 firmware

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages