So my project is using to Arduinos slaves to RPI that is master. They communicate through USB. Each time I remove one of the Arduinos I need to modify the .Py script to add the new USB alocated. Is there any way to keep same USB in program even after removing and plug in one of the Arduinos?
arduino1 = serial.Serial("/dev/ttyUSB1", 9600)
arduino2 = serial.Serial("/dev/ttyUSB2", 9600)
So if I remove USB1 after I put it back will be something like USB 3.