Created
August 10, 2014 19:04
-
-
Save brianfay/d9332cdd2d24364a05ab to your computer and use it in GitHub Desktop.
Add udev rule - triggered when Arduino Uno is connected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Rule to run script when Arduino Uno is connected | |
KERNEL=="ttyACM0",ACTION=="add",RUN+="/path/to/script" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#prints device info about arduino uno | |
udevadm info -a -p $(udevadm info -q path -n /dev/ttyACM0) | less |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#connects arduino Uno as a MIDI device | |
ttymidi -s /dev/ttyACM0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment