demo1: controls leds