As mentioned, and AC coupled charge pump circuit is a low component count solution, and if you "set" the output port in one critical function and "unset" it in another it also validates that both those functions are being called and running appropriately!
(ie, do a software bitbang port drive, not using a hardware periferal like PWM etc, and don't toggle the port but set and unset it seperately)