Last active
August 29, 2015 14:07
-
-
Save dlech/c08cd4679a98d4ad1716 to your computer and use it in GitHub Desktop.
Helper for ev3dev driver development
This file contains 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/bash | |
export p=/sys/class/lego-port/port | |
export s=/sys/class/lego-sensor/sensor | |
export tm=/sys/class/tacho-motor/motor | |
export dc=/sys/class/dc-motor/motor | |
export sv=/sys/class/servo-motor/motor | |
rmmods () { | |
modprobe -r wedo | |
modprobe -r ev3-analog-sensor | |
modprobe -r ev3-uart-sensor | |
modprobe -r nxt-analog-sensor | |
modprobe -r ht-nxt-smux-i2c-sensor | |
modprobe -r nxt-i2c-sensor | |
modprobe -r legoev3-ports | |
sleep 0.5 | |
modprobe -r ev3-uart-sensor-ld | |
modprobe -r legoev3-motor | |
modprobe -r rcx-motor | |
modprobe -r rcx-led | |
modprobe -r tacho-motor-class | |
modprobe -r servo-motor-class | |
modprobe -r dc-motor-class | |
modprobe -r lego-sensor-class | |
modprobe -r lego-port-class | |
modprobe -r lego-bus | |
} | |
insmods () { | |
modprobe legoev3-ports | |
modprobe wedo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment