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
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
import time | |
def setup(): | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(26, GPIO.OUT) | |
class ServoControl: |
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
# FIRST Install Ubuntu 16.04.3 (Installed desktop version) | |
sudo apt purge -y libreoffice* | |
sudo apt update | |
sudo apt upgrade | |
# NEXT Download the Ubuntu prerequisites (listed at the bottom here: https://software.intel.com/en-us/cvsdk-quickstartguide-installing-intel-computer-vision-sdk) | |
sudo apt install -y libpng12-dev libcairo2-dev libpango1.0-dev libglib2.0-dev libgtk2.0-dev libgstreamer0.10-dev libgstreamer1.0-dev libswscale-dev libavcodec-dev libavformat-dev | |
# NEXT Install OpenCL from the Intel script: https://software.intel.com/en-us/articles/sdk-for-opencl-gsg | |
cd ~/Downloads |
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
# https://rocm.github.io/ROCmHipCaffeQuickstart.html | |
# But fixed :) | |
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - | |
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list' | |
sudo add-apt-repository ppa:oibaf/graphics-drivers | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install mesa-vdpau-drivers |
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
## Shout out to jarutis here https://gist.github.com/jarutis/ff28bca8cfb9ce0c8b1a | |
## install Catalyst proprietary | |
## sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
sudo apt update | |
sudo apt dist-upgrade | |
# on a clean install not needed but could be helpful | |
sudo apt-get remove --purge fglrx* |
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
## Shout out to jarutis here https://gist.github.com/jarutis/ff28bca8cfb9ce0c8b1a | |
## install Catalyst proprietary | |
## sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
# on a clean install not needed but could be helpful | |
sudo apt-get remove --purge fglrx* | |
# | |
sudo add-apt-repository ppa:oibaf/graphics-drivers | |
sudo apt update |