Toggle GPO ports

GTT TFT Support

Moderator: Mods

Post Reply
Lenny
LCD!
Posts: 15
Joined: Mon Jul 03, 2006 5:43 pm
Location: Wellington, New Zealand
Contact:

Toggle GPO ports

Post 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.
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.

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Re: Toggle GPO ports

Post 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
Troy Clark
Design & Development
Matrix Orbital

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Re: Toggle GPO ports

Post 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
Troy Clark
Design & Development
Matrix Orbital

Lenny
LCD!
Posts: 15
Joined: Mon Jul 03, 2006 5:43 pm
Location: Wellington, New Zealand
Contact:

Re: Toggle GPO ports

Post by Lenny »

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.

Post Reply