Comments (1)
Hello,
sorry for long time in answering.
FRAM components doesn't need real init process, this step mainly initializes the I2C_SLAVE struct with I2C address, speed and register size of the I2C slave.
Some other components needs an initialization phase sending some parameters before it works the desired way.
Can you please provide the reference of the analog I2C chip you're trying to use? It would help giving some hints on how to properly set it up.
You can declare the slave as you mention and giving reference to it when calling init with proper parameters (address 0x5B (beware if the address is already shifted or not), communication speed, and the size of it's internal registers (8 or 16b)).
Yes, you can see ci2c mentioned, but it's refering to another lib in my account (dedicated only to AVR µcontrollers). ci2c is coded to work directly with AVR registers to set up and make the communication work; SAM families uses different registers, WireWrapper as it's name states uses Wire library from arduino, but providing the I2C_SLAVE abstraction layer.
This means code will be the same in a sketch, but portable between different arduino platforms when WireWrapper.h is included (which is not the case with ci2c).
from wirewrapper.
Related Issues (4)
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 wirewrapper.