Hello..
     I am first time work on beaglebone.I want to generate Clock of 3Khz on 
timer7 (P8_8)pin og beaglebone.
here is my code.

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 error..
GPIO.setclock(outpin,3000)
AttributeError: 'module' object has no attribute 'setclock'

Please correct me..

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/5798b2d0-d61a-4bed-a02c-bfdbf6b787c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to