@ioamas
According to the schematic diagram, the 5V of the Pogo pin is directly connected to the VIN pin. So I think maybe you can determine whether the Pogo pin is connected by judging whether the battery is connected
Hello @ioamas
thank you for reporting back. I am glad to hear you got it working.
And sorry you had to sort out a not so well assembled Battery Bottom2.
Thanks
Felix
@robski
I am not sure about your question - are you asking about the main code or the sound making code?
I have tried a lot of different approaches to get an alarm sound but nothing worked. Last try was with https://github.com/Hagtronics/M5Stack-Core2/tree/main/Sound
but with no success.
I just need any working piece of code that makes a beep sound and I will add it to my main code.