Skip to content

Instantly share code, notes, and snippets.

@benschumacher
benschumacher / fancontrol.py
Created March 20, 2024 21:32
Control fan on/off on Raspberry Pi w/ GPIO
#!/usr/bin/env /home/pi/src/repos/fancontrol/env/bin/python3
import re
import sys
from time import sleep
import RPi.GPIO as GPIO
THERMAL_FILE = '/sys/class/thermal/thermal_zone0/temp'
FAN_PIN = 12 # fan control PIN
PWM_FREQ = 768

Pita Bread

Ingredients

  • 310g (2½ cup) all-purpose flour
  • 35g (¼ cup) whole-wheat flour
  • 236g (1 cup) water at 90-95°F
  • 5g (~1 tsp) kosher salt
  • 1g (¼ tsp) active dry yeast

Keybase proof

I hereby claim:

  • I am benschumacher on github.
  • I am benschumacher (https://keybase.io/benschumacher) on keybase.
  • I have a public key whose fingerprint is 6753 60A5 237C 318E F1F8 B5D9 8887 839F 2FF8 7BF6

To claim this, I am signing this object:

alert("Hello!");