• Just to add, it depends what you want to do, but often for this kind of thing it's easier to work with the console interface rather than against it. You can just send the JS command directly from your Mac:

    echo -e "digitalWrite(LED1, on=!on);\n" > /dev/tty.usbmodem*
    
About

Avatar for Gordon @Gordon started