Seems easy, but isn't (for me). I want a button whose true state sends a string to the serial port, and whose false button sends a different string - BUT, I need that string sent to the serial port just ONCE. As you know, as long as the false or true condition is "current", it keeps sending that data down the pipe at a rate based on the timer in the loop. I need to use a loop to keep the program running - no setting buttons then pressing RUN, that doesn't work for us. Seems logical to use a FOR statement inside a case structure, but if it's all inside a loop, N=1 is really N=forever.
Here's what I want... Push button "in" [true], String1 is sent down the pipe ONCE and then stops sending it... push button again "releasi
ng" it [false]... P2 sent down pipe and then stops sending it.
I know this is easy to do with a PAIR of latching buttons, but the latched button gives no visual clue that it's on or off. I also don't want two butttons - one for String1 and one for String2, set to momentary - that's easy but doesn't get the point accross to the user.
Eventually, there will be eight buttons whose true values SET a bit and whose false values RESET a bit, but not in a streaming fashion. In other words, when the buttons are idle - no data is being sent down the pipe.
Two notes - on all my other hardware applications, it's no problem to keep "sending stuff" down the serial port - there's a FIFO and memort that handles it - but now I'm talking straight to a microcontroller so I have to send specific bits of data and stop. ALSO, a RING menu works FINE for my new application, but no one wants to pull down a menu and find "reset TTL 6" buried in it. So I want buttons. I for each TTL.
Richard