leds: resolve scope and forward declaration issues