ledfunctions replaces led.cpp