Reply To: Multi User – PIN CHANGE Event
If I expose queryPinState() in the API you’ll be able to monitor any pin. This purpose for pin state queries is for GUI monitoring of the current state of the Arduino: http://firmata.org/wiki/Protocol#Pin_State_Query_.28added_in_version_2.2.29. I discovered a bug in the query last night that may be on the firmata side. I’ll try to resolve it and make the method public sometime over the weekend. However in order to use the query you will have to poll. There is no way to get an event when an output pin changes. There was also a reason at one time I made this method private but it was so long ago I forgot the exact reason so I’ll have to do a lot of testing and perhaps some refactoring before I make it fully public again.