--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/znMvwYwvrgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/mjiu4epofo8eth2jdimfid58mtv34gffnf%404ax.com.
For more options, visit https://groups.google.com/d/optout.
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 beagleboard+unsub...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/i4515e9v68o5mursndth181b630fkt2t9s%404ax.com.
--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 beagleboard+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/ah915et5l7b340l0mi95cm7teaeiudg7qe%404ax.com.
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)
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/znMvwYwvrgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/1338123516.629027.1548801671823%40mail.yahoo.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAC6i%3DDLPik5vQzeoJ3VOcGCqRMuuxiebtv700-iysR%3D%3DyL%3Do9Q%40mail.gmail.com.
#!/usr/bin/python
## \file
# \brief Example: set 3 kHz timer on P8_08.
#
# This file contains an example on how to use libpruio to set a 3kHz
# timer on pin 10 on header P8.
#
# Licence: GPLv3, Copyright 2019 by Thomas{dot)Freiherr( at ]gmx[dot}net
from __future__ import print_function
from libpruio import *
## The header pin to set
PIN = P8_08
## Create a ctypes pointer to the pruio structure
io = pruio_new(PRUIO_DEF_ACTIVE, 4, 0x98, 0)
try:
## The pointer dereferencing, using contents member
IO = io.contents
if IO.Errr: raise AssertionError("pruio_new failed (%s)" % IO.Errr)
if pruio_tim_setValue(PIN, 1/3, 0, 0): # settimer output 3 kHz
raise AssertionError("setting timer failed (%s)" % IO.Errr)
if pruio_config(io, 1, 0x1FE, 0, 4): # upload settings, start IO mode
raise AssertionError("config failed (%s)" % IO.Errr)
## IO mode is running, you should see 3 kHz timer output on P8_08
print("Press <Crtl>-C to stop")
try:
while True:
except KeyboardInterrupt:
print("") # clear terminal
finally:
pruio_destroy(io)
<Crtl>-C. Then it restores the system to its original state.
echo deb http://beagle.tuks.nl/debian jessie/ > /etc/apt/sources.list.d/tuks.list
echo deb-src http://beagle.tuks.nl/debian jessie/ >> /etc/apt/sources.list.d/tuks.list
wget -qO - http://beagle.tuks.nl/debian/pubring.gpg | sudo apt-key add -
apt-get update
apt-get install python-pruio libpruio-klm libpruio-doc
adduser <YourUserID> pruio
rm /boot/dtbs/`uname -r`/am335x-boneblack-uboot-univ.dtbcd <your_project_folder>
cp -r /usr/share/doc/python-pruio/examples/libpruio .
One more notice:After installing libpruio (code sequence in my first post) you have to reboot in order to get ride of the cape-universal stuff.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/znMvwYwvrgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5d09926e-c6e1-49d1-a7eb-ae720f1ffb87%40googlegroups.com.