finished untested led_write