A gate-assisted GaN diode integrates a metal-oxide terminal on the p-layer, enabling high-speed visible light emission and dynamic photodetection. Its dual-mode operation supports compact, external-circuitry-free optical communication and detection of superimposed optical-electrical signals.