Core2 for AWS IoT EduKit BSP 1.5.1

The AXP192 library provides convenience functions to interact with the power management unit (PMU). The initialization function configures the Espressif I2C driver and the power management unit (PMU) with preset parameters.

Circuit Block Diagram for AXP192 power management unit

To enable this feature using KConfig, use the command pio run --environment core2foraws --target menuconfig from within the root of the project directory in your PlatformIO terminal window and go to the menu Component Config --> Core2 for AWS features to set the features you want to enable.


The following example initializes the Core2 for AWS, which initializes the PMU for the battery and other user enabled hardware features. It then prints the the battery voltage using the ESP logger.

#include "esp_log.h"
#include "core2forAWS.h"
static const char *TAG = "EXAMPLE";
void app_main(void){
float battery_voltage = Core2ForAWS_PMU_GetBatVolt();
ESP_LOGI(TAG, "Battery Voltage: %.3f", battery_voltage);
void Core2ForAWS_Init(void)
Initializes the power chip with default values, enables battery charging, and initializes all enabled...
Definition: core2forAWS.c:32
float Core2ForAWS_PMU_GetBatVolt(void)
Gets the battery voltage with the AXP192.
Definition: core2forAWS.c:160
Functions to initialize and access Core2 for AWS IoT EduKit hardware features.
#define TAG
Definition: i2c_device.c:10

Enumerated Type Definitions