change device/leds to use hash instead of constants