Hello @GermanSheepDog
below is an alternative function which works for me too:
#define PI4IOE5V6408_ADDR 0x43
#define OUTPUT_REG 0x05
void my_set_backlight(bool o) {
uint8_t data = M5.In_I2C.readRegister8(PI4IOE5V6408_ADDR, OUTPUT_REG, 200000);
if(o == true) data |= 0b10000000;
else data &= ~0b10000000;
M5.In_I2C.writeRegister8(PI4IOE5V6408_ADDR, OUTPUT_REG, data, 200000);
}
Thanks
Felix