1

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.

2

Re: LED Indicator

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);
2B, or not 2B, that is the pencil ...

3

Re: LED Indicator

Awesome!

Thank you very much!