Code Monkey home page Code Monkey logo

Comments (5)

SpaceTeddy avatar SpaceTeddy commented on June 8, 2024

Hi salmg,

I didn't tried to change the SPI channel, but this CC1101 library uses wiringPi for the raspberryPi SPI communication. Please check the SPI documentation here: http://wiringpi.com/reference/spi-library/

Please modify the following functions to SPI channel 1 in the cc1100_raspi.cpp file:

  • wiringPiSPISetup (0, ...) -> wiringPiSPISetup (1, ...)
  • wiringPiSPIDataRW (0,...) -> wiringPiSPIDataRW (1,...)

I did not tested it, but please try it.

from cc1101.

salmg avatar salmg commented on June 8, 2024

Hello,

I tried different things but none worked.

So I decided to try the second SPI device as slave with this configuracion:
image

It is working now with two projects sharing the same SPI0. Thanks.

from cc1101.

SpaceTeddy avatar SpaceTeddy commented on June 8, 2024

Yes, this is the simplest solution if your speed requirements for two devices are ok.

from cc1101.

salmg avatar salmg commented on June 8, 2024

that's true! do you have an email where I can contact you?

from cc1101.

SpaceTeddy avatar SpaceTeddy commented on June 8, 2024

[email protected]

from cc1101.

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.