Giter VIP home page Giter VIP logo

Comments (5)

yiank avatar yiank commented on July 16, 2024 1

Yes, it's working!
Thank you for the fast support. Your addon gives to the openFrameworks/Rpi new potential.

from ofxgpio.

kashimAstro avatar kashimAstro commented on July 16, 2024

Hi, thanks for this, I just fixed the bug.

for enable SPI1 read this:
http://terminal28.blogspot.it/2016/05/enabling-spi1-on-raspberry-pi-bzero23.html

if you use a raspberry pi 3 with active bluetooth
you have to disable it, to make SPI1 work.

from ofxgpio.

yiank avatar yiank commented on July 16, 2024

Thank you for the reply.

I manage to used the SPI1 following your advice but I have also to edit the spi2.h. In this header you have restrict the ports to use only SPI0 with this code:
class SPI2 { public: string spiDev0 = "/dev/spidev0.0" ; string spiDev1 = "/dev/spidev0.1" ;

To solve it quick and dirty, I just edited to this:
string spiDev0 = "/dev/spidev1.0" ;

and I called the setupAPA102 with the channel to 0:
apa.setupAPA102(0);

Anyway it works for me now, thank you!

from ofxgpio.

kashimAstro avatar kashimAstro commented on July 16, 2024

later i fix this too, thank you!

from ofxgpio.

kashimAstro avatar kashimAstro commented on July 16, 2024

I added a second setup method in the SPI class,
where you can pass the device as the first parameter.

and i added a path parameter to the setupAPA102(path,channel,speed) method
with default on SPI0.

unfortunately I can not do tests at the moment because I'm traveling,
if by chance you can do a test, so I close this issues..

Ciao

from ofxgpio.

Related Issues (20)

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.