Open pixelwave opened 1 week ago
#include "PMU.h"
PowersSY6970 PMU_X;
result = PMU_X.init(Wire, TOUCH_IICSDA, TOUCH_IICSCL, SY6970_SLAVE_ADDRESS);
if (result == false)
{
Serial.println("PMU is not online...");
delay(50);
}
else
{
PMU_X.enableADCMeasure();
PMU_X.disableStatLed();
PMU_X.disableOTG();
}
PMU_X.deinit();
#include "PMU.h" PowersSY6970 PMU_X; result = PMU_X.init(Wire, TOUCH_IICSDA, TOUCH_IICSCL, SY6970_SLAVE_ADDRESS); if (result == false) { Serial.println("PMU is not online..."); delay(50); } else { PMU_X.enableADCMeasure(); PMU_X.disableStatLed(); PMU_X.disableOTG(); } PMU_X.deinit();
How would that work in ESPHome?
#include "PMU.h" PowersSY6970 PMU_X; result = PMU_X.init(Wire, TOUCH_IICSDA, TOUCH_IICSCL, SY6970_SLAVE_ADDRESS); if (result == false) { Serial.println("PMU is not online..."); delay(50); } else { PMU_X.enableADCMeasure(); PMU_X.disableStatLed(); PMU_X.disableOTG(); } PMU_X.deinit();
How would that work in ESPHome?
no code is from Platformio - arduino framework
What I thought ... I am still learning. Not sure how to translate / integrate this into ESP Home code.
Is there a way to disable the blinking green LED?
I am using ESP Home ... maybe by pulling one GPIO pin low or something?