Comments (3)
I assume you are working with a BeagleBone Black, rather than the BeagleBone AI. The code in neo4.pru0.c is for the Black, the code in neo4.pru1_1.c is for the AI. If you want to run on pru1 on the Black I suggest modifying the neo4.pru0.c code. I think it will use P8_46 for the output.
--Mark
from prucookbook.
Hi Mark,
yes tried that code on a BBB. Like to drive two neopixel stripe, one via pru0 and the other via pru1 - if possible.
After reading the BeagleBone Cape Header Pins.xlxs found pru1 out pins and will try them,
KR Mark
Edit: added link to excel sheet
from prucookbook.
Added some pru 1 pins on P8 to /var/lib/cloud9/prugpio.h
git diff common/prugpio.h
diff --git a/common/prugpio.h b/common/prugpio.h
index f4441f6..38a3831 100644
--- a/common/prugpio.h
+++ b/common/prugpio.h
@@ -147,6 +147,20 @@
// R31 input bits on pru1
#define P9_26 (1<<16) /* input */
+// R30 input/output bits on pru1
+#define P8_27 (1<<8)
+#define P8_28 (1<<10)
+#define P8_29 (1<<9)
+#define P8_30 (1<<11)
+#define P8_39 (1<<6)
+#define P8_40 (1<<7)
+#define P8_41 (1<<4)
+#define P8_42 (1<<5)
+#define P8_43 (1<<2)
+#define P8_44 (1<<3)
+#define P8_45 (1<<0)
+#define P8_46 (1<<1)
+
// R30 output bits on pru0 on Pocket
#define P1_36 (1<<0)
#define P1_33 (1<<1)
just had to change the out pin to make it work with pru1 on BBB.
good to close ;-)
from prucookbook.
Related Issues (15)
- Issues with the book section 4.4 UART HOT 1
- Typos in Table 4 of PRUCookbook/docs/05blocks/blocks.adoc HOT 1
- PRU Cookbook for BB AI? HOT 4
- Section 6 example broken on PocketBeagle HOT 9
- Multiple links broken HOT 1
- How to compile and execute code without make.
- How to add library in clpru compiler. HOT 1
- resource_table_empty.h no more in pru-software-support-package HOT 1
- Suggestion: Add clarification on PRU_UART selection
- Starterware HOT 2
- Errors in Makefile of "Blinking a LED" example HOT 5
- python rendering issue HOT 1
- Can bbblue do it uart example? HOT 1
- rpmsg issue on BBB running debian 9.5 IoT HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prucookbook.