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 7x7 RGB LED matrix power on or off
// Only available on the FeatherS3 Neo
void setMatrixPower(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
// Only available on the FeatherS3 and FeatherS3 Neo
void setBlueLED(bool on);
// Toggle the blue LED
// Only available on the FeatherS3 and FeatherS3 Neo
void toggleBlueLED();
// Get the battery voltage in volts
// On the OMGS3, this function gets the voltage from the MAX17048 otherwise, it reads it from the ADC pin.
// Not available on the NanoS3
float getBatteryVoltage();
// Get the light sensor in volts (0-3.3)
// Only available on the FeatherS3 and FeatherS3 Neo
float getLightSensorVoltage();
// Detect if VBUS (USB power) is present
// Not available on the NanoS3
bool getVbusPresent();