Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
#setup the slushengine
import Slush
b = Slush.sBoard()
#setup a few different motors, this can also be done in an array
m0 = Slush.Motor(0)
m1 = Slush.Motor(1)
m2 = Slush.Motor(2)
#!/usr/bin/python3
#configure the slush library
import Slush
import time
b = Slush.sBoard()
#setup a motor, more than one motor can be setup here
m0 = Slush.Motor(0)
@Mango-kid
Mango-kid / manual_limi.py
Created March 22, 2018 15:24
Using the limt switch manually.
'''
the example uses the move command and the manual limit switch check command. It moves the motor and then checks the limit switch.
this can be used to do fine manual homing
'''
import Slush
#setup the motor
b = Slush.sBoard()
m = Slush.Motor(1)
@Mango-kid
Mango-kid / sh
Created March 27, 2025 19:15
framework 13 run gemma3 27B on GPU
#install rocm as found here -> https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html
sudo apt update
sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
sudo apt install python3-setuptools python3-wheel
sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups
wget https://repo.radeon.com/amdgpu-install/6.3.3/ubuntu/noble/amdgpu-install_6.3.60303-1_all.deb
sudo apt install ./amdgpu-install_6.3.60303-1_all.deb
sudo apt update
sudo apt install amdgpu-dkms rocm