.pio/libdeps/m5stack-core2/M5Core2/src/AXP192.cpp
void AXP192::SetSpkEnable(uint8_t state)
{
    uint8_t reg_addr=0x94;
    uint8_t gpio_bit=0x04;
    uint8_t data;
    data=Read8bit(reg_addr);

    if(state)
    {
      data|=gpio_bit;
    }
    else
    {
      data&=~gpio_bit;
    }

    Write1Byte(reg_addr,data);
}
//set led state(GPIO high active,set 1 to enable amplifier)
set led state(GPIO high active,set 1 to enable amplifier)
set led state ( GPIO high active set 1 to enable amplifier )
void AXP192::SetSpkEnable(uint8_t state)
{
    uint8_t reg_addr=0x94;
    uint8_t gpio_bit=0x04;
    uint8_t data;
    data=Read8bit(reg_addr);
    if(state)
    {
      data|=gpio_bit;
    }
    else
    {
      data&=~gpio_bit;
    }
    Write1Byte(reg_addr,data);
}
void AXP192 :: SetSpkEnable ( uint8_t state ) { uint8_t reg_addr = 0x94 ; uint8_t gpio_bit = 0x04 ; uint8_t data ; data = Read8bit ( reg_addr ) ; if ( state ) { data |= gpio_bit ; } else { data &= ~ gpio_bit ; } Write1Byte ( reg_addr , data ) ; }
set led state(GPIO high active,set 1 to enable amplifier)
set led state ( GPIO high active set 1 to enable amplifier )