Git Product home page Git Product logo

Comments (3)

MarkAYoder avatar MarkAYoder commented on June 24, 2024

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.

MaBecker avatar MaBecker commented on June 24, 2024

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,

Bildschirmfoto 2022-01-05 um 13 19 39

KR Mark

Edit: added link to excel sheet

from prucookbook.

MaBecker avatar MaBecker commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.