Two Way (Duplex) Serial Communication
Using An Arduino
and the p5.webserial Library
Started with the setup, and testing of the serial data reading.


After that, I started the sketch in p5.
Setting up the index and the editor to receive the data is the next step.


After the setup, I changed the serialEvent to have the “hello” messages trigger the function.
