ledOn/Off and pinOn/off working