Dear All,
I am new in the “Processing world”. I have connected Processing to Arduino.
What I can do, it is to push a button and activate some Digital Outputs in Arduino.
Now, what I wanna do is: according to the status of an output, how I can “color” a certain square in processing? Let’s say, like a led?
Thanks a lot,
Samuele
glv
June 16, 2022, 2:28pm
2
Hello @samiam85 ,
There is a tutorial on Electronics here suitable for a beginner:
Explore away!
:)
As well as that, see (Processing) File, Examples, Libraries, Serial. Try all 5 examples starting with SimpleRead and SimpleWrite.
1 Like
glv
June 16, 2022, 5:27pm
4
Hello,
If you are exploring the examples that come with the Processing IDE take a look at this topic:
I modified the existing “SimpleWrite” example to:
save and check for the state of mouseOverRect()
print state to console
only writes serial data once
a delay() to wait for Arduino to reset once connected to it; in my case, it is an Arduino Mega 2560 R3.
I kept the spirit of the original example intact and left it as a “Simple Write” program.
My edit of “SimpleWrite” example so it only sends data once:
/**
* Simple Write.
*
* Check if the mouse is over a rectangle and writes the status …
:)
glv:
a tutorial on E
Dear All,
thanks a lot for your replies. I’ll go trhough the tutorials, then and I’ll be back to you, if necessary.
Samuele.
1 Like