You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to dynamically calculate MONITOR_PORT while running make upload?
I have several Arduino's connected to my host, and I've written a Python script to figure how which ones correspond to each /dev/ttyACM* file. I'd like to plug in this script to the makefile so when I run make upload it will automatically set MONITOR_PORT to the right file. However, I can't find any documentation on how to do this.
The text was updated successfully, but these errors were encountered:
You could run your python script and pipe the input into MONITOR_PORT in your local Makefile in a similar way as we call shell commands within Arduino.mk, e.g.
MONITOR_PORT = $(shell /path/to/my/script.py)
and of course have your script output "/dev/ttyACM0" or whatever.
Is there any way to dynamically calculate
MONITOR_PORT
while runningmake upload
?I have several Arduino's connected to my host, and I've written a Python script to figure how which ones correspond to each
/dev/ttyACM*
file. I'd like to plug in this script to the makefile so when I runmake upload
it will automatically setMONITOR_PORT
to the right file. However, I can't find any documentation on how to do this.The text was updated successfully, but these errors were encountered: