I have a Beeper connected to GPIO4 (default PullUp) via a transistor. Driving the GPIO 1sec High, the Beeper is active. Everything works out of an application.
Due to the fact that GPIO4 has PullUp, the Beeper beeps until EEprom from HAT sets GPIO4 to Output LOW. This takes about 5secs. On ShutdownHalt, the Beeper is also activ until I remove the powersupply.
It's not so bad that the Beeper is activ at startup and on ShutdownHalt. But 1-2sec activation of the beeper whould be not so nagging.
Inspired by the gpio-poweroff overlay, it can drive the gpio to a high level at exactly at startup and ShutdownHalt. But the level ist static. Is there a way to modify the gpio-poweroff overlay to issue a 1-2sec pulse at these states?