Skip to content

Instantly share code, notes, and snippets.

@konsumer
Created June 12, 2019 20:20
Show Gist options
  • Select an option

  • Save konsumer/de01095011dbe72a5db177ccf1081678 to your computer and use it in GitHub Desktop.

Select an option

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