Generate clock on Timer7 (P8_8)pin of beaglebone.

9 views
Skip to first unread message

sayalik...@gmail.com

unread,
Jan 28, 2019, 7:52:40 AM1/28/19
to BeagleBoard
Hello.
      I am first time work on beaglebone. I want to generate 3Khz clock on the timer7 (P8_8)pin of beaglebone.
my python code is.

import Adafruit_BBIO.GPIO as GPIO
import time
outpin="P8_8"
GPIO.setup(outpin,GPIO.OUT)
GPIO.setclock(outpin,3000)
while True:
      GPIO.output(outpin,GPIO.HIGH)
      time.sleep(2)
      GPIO.output(outpin,GPIO.LOW)
      time.sleep(2)
--------------------------------------------------------------
It gives the error
GPIO.setclock(outpin,3000)
AttributeError: 'module' object has no attribute 'setclock'

please correct me..



Reply all
Reply to author
Forward
0 new messages