Two-Way (Duplex) Serial Communication Using An Arduino and the p5.webserial Library
What I learn
When sending data, I imagine that my computer and my friend are passing notes. To avoid overwhelming my friend, use a "handshake." In Arduino, this means waiting for a "ready" signal from my friend before sending more data. It's like a smooth conversation! 🤝📨
Code
X is for changing the ball’s x-axis position, Y is for changing the ball’s y-axis position, and S is for changing the scale of this ball.