mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Modified udev rules to symlink openmvcam for serial; modified openmv-ide.py to open openmvcam symlink
This commit is contained in:
parent
8467c67f06
commit
5e95efdac5
@ -2,6 +2,7 @@
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE:="0666"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="f055", ATTRS{idProduct}=="9800", MODE:="0666"
|
||||
KERNEL=="ttyACM*", ATTRS{idVendor}=="f055", ATTRS{idProduct}=="9800", MODE:="0666", SYMLINK+="openmvcam"
|
||||
# If you share your linux system with other users, or just don't like the
|
||||
# idea of write permission for everybody, you can replace MODE:="0666" with
|
||||
# OWNER:="yourusername" to create the device owned by you, or with
|
||||
|
||||
@ -128,7 +128,7 @@ class OMVGtk:
|
||||
self.terminal = self.builder.get_object('terminal')
|
||||
try:
|
||||
# open VCP and configure the terminal
|
||||
self.fd = os.open("/dev/ttyACM0", os.O_RDWR)
|
||||
self.fd = os.open("/dev/openmvcam", os.O_RDWR)
|
||||
self.terminal.reset(True, True)
|
||||
self.terminal.set_size(80,24)
|
||||
self.terminal.set_pty(self.fd)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user