# UDEV Rules for DigiUSB library.
# This is required to use the DigiUSB library even if you installed the udev rules for the Digispark/Micronucleus 
# This file must be placed at:
#
# /etc/udev/rules.d/50-digispark.rules    (preferred location)
#   or
# /lib/udev/rules.d/50-digispark.rules    (req'd on some broken systems)
#
# After this file is copied, physically unplug and reconnect the board.
#

# For usage as usb device (5s after connect to usb bus)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"


#
# 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
# GROUP:="somegroupname" and mange access using standard unix groups.