Serial killer
Posted: Tue Dec 16, 2008 1:54 am
I've been really enjoying working on a new project over the last few days and I seem to have hit a problem which might make all the effort in vain.
The idea was to build an interface for an Arduino microcontroller. I have multiple readings and outputs and the idea was that they could all be running at the same time.
However I didn't try two outputs simultaneously until just now and it doesn't seem to work.
If I run the above on one button and try to run another button at the same time the second button stops the first. If I stop the second the first resumes.
I know that only one program can communicate via serial at a time but does this also limit what I'm trying to do, and if so, is there some way to stack up or buffer the outputs?
Any Help or advice much appreciated.
Jim H
The idea was to build an interface for an Arduino microcontroller. I have multiple readings and outputs and the idea was that they could all be running at the same time.
However I didn't try two outputs simultaneously until just now and it doesn't seem to work.
Code: Select all
on mouseUp
put the label of btn "Port" into thePort
if the hilite of me is true then
if fld "sec13" >= 1 and fld "pause13" >= 1 then
repeat while the hilite of me is true with messages
write "E" to driver thePort
set the backgroundColor of graphic "Rectangle13" to red
wait for fld "sec13" seconds with messages
write "R" to driver thePort
set the backgroundColor of graphic "Rectangle13" to black
wait for fld "pause13" seconds with messages
end repeat
end if
end if
end mouseUp
I know that only one program can communicate via serial at a time but does this also limit what I'm trying to do, and if so, is there some way to stack up or buffer the outputs?
Any Help or advice much appreciated.
Jim H