Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.
/ pypruss Public archive
forked from pbrook/pypruss

Python bindings for TI PRUSS driver

Notifications You must be signed in to change notification settings

erlerobot/pypruss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPRUSS

PyPRUSS is a Python binding for controlling the PRUs on BeagleBone.

For examples and inspiration: http://hipstercircuits.com/?cat=5

To install:

git clone https://intelligentagent@bitbucket.org/intelligentagent/pypruss.git  
cd pypruss
python setup.py install
export LD_LIBRARY_PATH=/usr/local/lib  

Note: that you must load the uio_pruss kernel module. There is a function for loading and unloading this in the library called modprobe() with an optional argument for the DDR size. To do it manually it's modprobe uio_pruss. This must be done on every boot.

Also, you need to activate the PRU using:

echo BB-BONE-PRU-01 > /sys/devices/bone_capemgr.8/slots #activate the PRU

To try the blinkled example:

cd PyPRUSS/examples/blinkled  
make  
python blinkled.py  

You should then see three of the user leds blink 10 times.

There are a few other examples in there as well, have a look at them for other functions.

About

Python bindings for TI PRUSS driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.6%
  • Python 2.1%
  • OpenEdge ABL 1.2%
  • Shell 0.1%