(u_u)

raspberry pi + RC-S320 + libpafe

Categories: [blog]
Tags: [raspberry pi], [RC-S320], [librafe]

sudo apt update && sudo apt upgrade
sudo apt-get install libusb-dev
mkdir pasori
cd pasori
git clone https://github.com/rfujita/libpafe.git 
cd libpafe
./configure
make
sudo make install
sudo vim /lib/udev/rules.d/60-libpafe.rules
ACTION!="add", GOTO="pasori_rules_end"
SUBSYSTEM=="usb_device", GOTO="pasori_rules_start"
SUBSYSTEM!="usb", GOTO="pasori_rules_end"
LABEL="pasori_rules_start"

ATTRS{idVendor}=="054c", ATTRS{idProduct}=="006c", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="01bb", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="02e1", MODE="0664", GROUP="plugdev"

LABEL="pasori_rules_end"
sudo adduser username plugdev
sudo udevadm control --reload-rules
sudo reboot