Page 1 of 1

Toggle GPO ports

Posted: Tue Feb 24, 2015 2:54 pm
by Lenny
Hey folks,

Is there a way to simply toggle a GPO via scripted region?
Example: Press a button, set GPO port to high. Press same button again, set GPO port to low.

Obviously, we can set a state to on or off as in the manual:
254 73 Number Setting
But you can't use that same statement to change the port back using the same button, unless you can change "Setting" somehow in the script file.
Maybe, a firmware upgrade could add "2" to setting, so that 0 = off, 1 = on, 2 = toggle state.

This would save having a MCU keep track of the port setting and telling the LCD to invert the current state of the port - if the LCD was able to somehow keep track of what the GPO state is.

Re: Toggle GPO ports

Posted: Wed Feb 25, 2015 9:36 am
by Clark
Hey Ben,

We were just talking about adding a new feature to the GTT that I think could help here, so it would be great to get some developer feedback.

What about a toggle button?

With scripting, I believe that feature would provide the GPO toggle ability you need. Let me know what you think.

Cheers,
Troy

Re: Toggle GPO ports

Posted: Fri Mar 18, 2016 2:53 pm
by Clark
Hey Ben,

It's taken a little longer than we would have liked, but we have added a toggle button command to the GTT. Please see Firmware Release R2.4.0.7279.

Thanks again for your valuable feedback!

Cheers,
Troy

Re: Toggle GPO ports

Posted: Sun Apr 03, 2016 6:17 pm
by Lenny
Sweet, I'll give it a go, cheers. :)