... from the pc and real Arduino IO, now you have made a little HMI (Human Machine Interface).
It's also possible to simulate through TCP WiFi-Ethernet connection.
Free license key: 4C9G9-725IT-CYUV4-6KDBF-CPDEU
More information: https://xevro.be/products/arduino-simulator-drag-draw-macos.html