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.
Toggle GPO ports
Moderator: Mods
Toggle GPO ports
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
Re: Toggle GPO ports
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
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
Troy Clark
Design & Development
Matrix Orbital
Design & Development
Matrix Orbital
Re: Toggle GPO ports
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
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
Troy Clark
Design & Development
Matrix Orbital
Design & Development
Matrix Orbital
Re: Toggle GPO ports
Sweet, I'll give it a go, cheers. :)
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.