Comments (1)
What kind of device and platform you script are running at ?
It does not work, could u describe more specifically. An error occurred or write data and read data does not matched or other ? Probably because of device internal address alignment issue.Reference i2c device technical documents it will helpful.
Please refer i2c_tool.c it read and write both in the same context, it works fine. Set the fifth arg as ioctl it will using "i2c_ioctl_write" and "i2c_ioctl_read" read/write I2C EEROM.
Here is my test on RPi3 Write/Read 24C02 using ioctl API:
from libi2c.
Related Issues (13)
- Build failed: redefinition
- Undefined References HOT 3
- Python into NodeJS? HOT 1
- Using libi2c with Adafruit VL53L4CD Time of Flight Sensor HOT 1
- Undefined reference to any C++11 class or function when linked both with libgpiod
- Publish to pypi? HOT 1
- fix description of I2C_M_IGNORE_NCK in README.md HOT 1
- Python 3.10 requires PY_SSIZE_T_CLEAN macro in # format
- Sending integers/floats instead of chars HOT 1
- Maximum bytes per message HOT 1
- Segmentation fault when trying to write to sensor HOT 2
- Compilation error when using c++ compiler: invalid conversion from `void*` to `__u8* {aka unsigned char*}`
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 libi2c.