Skip to content

Instantly share code, notes, and snippets.

View raspberrytipsnl's full-sized avatar

raspberrytips.nl raspberrytipsnl

View GitHub Profile
@raspberrytipsnl
raspberrytipsnl / joystick.py
Created February 4, 2019 16:23
Analog Joystick / MCP3008 / Raspberry Pi
#!/usr/bin/python
import spidev
import time
import os
spi = spidev.SpiDev()
spi.open(0,0)
spi.max_speed_hz=1000000