Giter Club home page Giter Club logo

Comments (9)

kashimAstro avatar kashimAstro commented on September 2, 2024

an anomaly has been reported to me with i2c on debian stretch.

what operating system are you working on?
you can pass me a: uname -a ?

now i'm traveling, in a few days i go back to the laboratory and try to understand the problem!

thanks!

from ofxgpio.

fred-dev avatar fred-dev commented on September 2, 2024

Hey, I get this:
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux
I am also trying to get SPI for an MCP3008, I don't manage to get any input (I have used the chip before). In the meantime can you recommend a version of OF and the stretch/or previous OS for linux that will function?

from ofxgpio.

kashimAstro avatar kashimAstro commented on September 2, 2024

Hi @fred-dev ,

I just fixed the examples for the i2c bus scanner, now you should see the addresses on the bus!

the example for the openframeworks scanner wired the path to the device: /dev/i2c-1 in the code
you can modify it as you wish.

regarding SPI there should not be any problem, both the example i2c and SPI must be executed with a user who can access you device, you can check if your user belongs to the i2c group and spi with command: id or run the example with sudo.

you can also refer to this issues:
#18

for some additions made to the SPI class.
make sure the MCP example points to the right path for the SPI device you are using.

try to look at this example that takes the path of the spi device as a parameter in the setup method
https://github.com/kashimAstro/ofxGPIO/blob/master/example-mcp-simple-syntax/src/main.cpp

please let me know
Greetings

from ofxgpio.

fred-dev avatar fred-dev commented on September 2, 2024

from ofxgpio.

kashimAstro avatar kashimAstro commented on September 2, 2024

Hi, thanks for feedback!

unfortunately, I can only reach a remote raspberry that is in my office in Italy, while I am now in switzerland. I'd like to solve this, can you help me debug?

if you can! add a: cout << result << endl; to the scanner example, immediately after this line:
https://github.com/kashimAstro/ofxGPIO/blob/master/example-i2c-scanner/src/main.cpp#L28
and pass me the output.

Grazie!

from ofxgpio.

fred-dev avatar fred-dev commented on September 2, 2024

from ofxgpio.

kashimAstro avatar kashimAstro commented on September 2, 2024

the whole list contains only the value: 65415?
this is strange smbus should return 0 or 255 if it finds an address..
Is the chip connected when you run example?

from ofxgpio.

fred-dev avatar fred-dev commented on September 2, 2024

from ofxgpio.

kashimAstro avatar kashimAstro commented on September 2, 2024

Hi @fred-dev thanks for this,
in the next few days I solve this problem!

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.