Skip to content

Instantly share code, notes, and snippets.

View highflyersnl's full-sized avatar

Marco highflyersnl

  • the netherlands
View GitHub Profile
@highflyersnl
highflyersnl / fancontrol python 3.4 code
Created August 28, 2017 12:04
this is to control a fan on a raspberry pi with python 3.4 on a bc332 transistor
#!/usr/bin/env python3
# first author: Edoardo Paolo Scalafiotti <[email protected]>
# Edits done by: Marco Bosch <[email protected]>
import os
from time import sleep
import signal
import sys
import RPi.GPIO as GPIO