Comments (9)
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.
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.
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.
from ofxgpio.
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.
from ofxgpio.
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.
from ofxgpio.
Hi @fred-dev thanks for this,
in the next few days I solve this problem!
from ofxgpio.
Related Issues (20)
- ADS1015 GPIO HOT 1
- Problem example-i2c-scanner HOT 1
- Can't compare ofstream or ifstream to int in gpio.cpp HOT 4
- example-apa102-ledstrip not lighting leds with Stretch HOT 5
- Use SPI1 for APA102 HOT 5
- Gpio io HOT 5
- Orange Pi 4G IOT HOT 2
- Cannot make SPI work HOT 2
- unable to set direction of gpio HOT 1
- Setting pull up resistors HOT 7
- how do i add ofxGPIO to an existing project? HOT 1
- servo example on rpi 2 - no movement HOT 1
- for Asus TinkerBoard HOT 1
- OPERATION FAILED: Unable to set direction of GPIO4 - openFrameworks not working HOT 2
- Adapting read-write example to distance sensor HOT 5
- using spi1 with MCP
- Issues with using input and output and startup.
- doesnt seems to work with RPi5 Bookworm 0F12.0 arch64 HOT 2
- error open frameworks compiling with window HOT 3
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 ofxgpio.