This file contains hidden or 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
#!/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) |
This file contains hidden or 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
#!/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) |
This file contains hidden or 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
void setup() { | |
pinMode(2, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(2, HIGH); | |
delay(1000); | |
digitalWrite(2, LOW); | |
delay(1000); | |
} |
This file contains hidden or 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
''' | |
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) |
This file contains hidden or 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
#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 |
OlderNewer