FYI (AKA before people start down voting)
I have a simple sketch called
test.ino. I can run it from my macbook without issue. However, when I try to hook the Arduino Uno directly up to the raspberry pi (2) I see the port that is being used is
ttyACM0 but when I run
sudo arduino --upload test.ino --port /dev/ttyACM0, I get...
Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
How do I avoid this?
***@robotbrain:~/Code/rpi/green$ lsusb Bus 001 Device 005: ID 2341:0001 Arduino SA Uno (CDC ACM) Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
You can confirm no x11 by...
...@robotbrain:~$ xdpyinfo | grep version xdpyinfo: unable to open display "".