Skip to content

strid3r21/BeeDataLogger-Arduino-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bee Data Logger Arduino Helper Library

This is the helper library for The Bee Data Logger.

Examples can be found in the examples directory, these can also be loaded from the examples menu in the Arduino IDE.

Installation

This library can be installed through the Arduino library manager or manually from github by following the instructions here.

List of functions

void begin();

// Set LDO2 on or off
void setLDO2Power(bool on);

// Set neopixel power on or off
void setPixelPower(bool on);

// Set neopixel color
void setPixelColor(uint8_t r, uint8_t g, uint8_t b);
void setPixelColor(uint32_t rgb);
void setPixelColor(green);  //green, red, blue, yellow, pink, purple, orange, white, aqua, off

// Set neopixel brightness
void setPixelBrightness(uint8_t brightness);

// Pack r,g,b (0-255) into a 32bit rgb color
static uint32_t color(uint8_t r, uint8_t g, uint8_t b);

// Convert a color wheel angle (0-255) to a 32bit rgb color
static uint32_t colorWheel(uint8_t pos);

// Get the battery voltage in volts
float getBatteryVoltage();

// Get the Voltage of any given ADC pin 3 through 9.
// Example: bdl.getADCVoltage(3); will return the ADC voltage of pin 3.
float getADCVoltage();

// Detect if VBUS (USB power) is present
bool getVbusPresent();

About

a helper library for the bee data logger

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages