This is the helper library for all the Unexpected Maker ESP32-S3 boards.
Examples can be found in the examples directory, these can also be loaded from the examples menu in the Arduino IDE.
This library can be installed through the Arduino library manager or manually from github by following the instructions here.
// Initializes all UM board peripherals
void begin();
// Set LDO2 on or off (ProS3 and FeatherS3 only)
void setLDO2Power(bool on);
// Set neopixel power on or off (On ProS3 and Feather it sets LDO2 on)
void setPixelPower(bool on);
// Set neopixel color
void setPixelColor(uint8_t r, uint8_t g, uint8_t b);
void setPixelColor(uint32_t rgb);
// 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);
// Set the blue LED on or off (FeatherS3 only)
void setBlueLED(bool on);
// Toggle the blue LED (FeatherS3 only)
void toggleBlueLED();
// Get the battery voltage in volts
float getBatteryVoltage();
// Get the light sensor in volts (0-3.3)
float getLightSensorVoltage();
// Detect if VBUS (USB power) is present
bool getVbusPresent();