Skip to content

Instantly share code, notes, and snippets.

@konsumer
Created June 12, 2019 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konsumer/de01095011dbe72a5db177ccf1081678 to your computer and use it in GitHub Desktop.
Save konsumer/de01095011dbe72a5db177ccf1081678 to your computer and use it in GitHub Desktop.
import RPi.GPIO as GPIO
import time
GPCLK_2 = 31
GPIO.setmode(GPIO.BOARD)
GPIO.setup(GPCLK_2, GPIO_OUT)
GPIO.setclock(GPCLK_2, 10000)
GPIO.output(GPCLK_2, 1)
time.sleep(10)
GPIO.output(GPCLK_2, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment