Topic: LED Indicator
Can someone help me set up a indicator light on Remotexy please?
I would like a LED to light on on the display if a Digital Input is active.
I can't seem to figure out how to program that. I am using a Arduino mega.
Thx.
You are not logged in. Please login or register.
RemoteXY community → Projects made with RemoteXY → LED Indicator
Can someone help me set up a indicator light on Remotexy please?
I would like a LED to light on on the display if a Digital Input is active.
I can't seem to figure out how to program that. I am using a Arduino mega.
Thx.
This will turn on an LED when the pin is HIGH....
#define inputPin xx // your input pin number
pinMode(inputPin, INPUT);
RemoteXY.LEDname = digitalRead(inputPin);
If you want the LED to go OFF when the input is HIGH...
RemoteXY.LEDname = !digitalRead(inputPin);
Awesome!
Thank you very much!
RemoteXY community → Projects made with RemoteXY → LED Indicator
Powered by PunBB, supported by Informer Technologies, Inc.