We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi Everyone,
I've been struggling with this issue for a number of days now, I'm quite new to Processing and am unsure of the correct way to go about Storing a Serial value .
All I'm trying to do is have Processing Scan the port and wait for a number to appear (example 112) once Processing sees this number it needs to prompt text on the Screen to say ON and it needs to stay that way until it either receives the same number or a specific number. If it receives anything outside those 2 numbers it just needs to keep reporting ON.
I have the basis of what I want but because the state obviously is no longer valid when it receives a different number the previous state disappears from the window.
Any help would be greatly appreciated
Answers
Sorry, I have no idea why my code isnt showing up in a code box :(
http://forum.processing.org/two/discussion/8045/how-to-format-code-and-text#latest
I just found that, fixing now
one way:
Thank you so much!
My own super tweaked version too: 3:-O
That Seems to drop all values into a single field, Would making more Arrays solve that issue?
I didn't get what you meant. Has it worked? Is it buggy?
Pay attention at what's being print()ed in the console and check whether it matches what's expected!
I can't test it b/c I don't have the hardware for it!