Coder Social home page Coder Social logo

ftjuh / i2cwrapper Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 4.0 4.76 MB

I2Cwrapper is a firmware framework which helps you implement Arduino based I2C target (slave) devices for control of non-I2C hardware. Supports plain Arduinos, ESP8266, ESP32, SAMD, STM32, and ATtiny platforms.

License: GNU General Public License v2.0

Shell 0.10% CSS 14.26% C++ 59.26% C 25.63% Makefile 0.76%
arduino arduino-library i2c i2c-device port-expander servo servo-control stepper stepper-motor-control esp32

i2cwrapper's People

Contributors

awgrover avatar ftjuh avatar the-online-developer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

i2cwrapper's Issues

Successful PinI2C between SAMD21's

It worked (with small edits):

controller: adafruit metro express (m0)
target: adafruit itsybitsy m0
examples/Pin_control
edited firmware/firmware_modules.h to include PinI2C_firmware.h
dPinOut = 13
dPinIn = 12
aPinOut = 3
aPinIn = 14 // A0

Please see
https://github.com/awgrover/I2Cwrapper/pull/2
I did a PR in my repository so it wouldn't clutter up yours (yet). I'll move it to yours if/when you want it.

That PR only has the fixes to enable the samd to work (and only PinI2C). I can implement the accelstepper and servo.

Please also see
https://github.com/awgrover/I2Cwrapper/pull/2
That PR has changes I made to examples/Pin_control to enable a step-by-step process of testing. Specifically, I added a "loopback" idea for PinI2C. And, I would do the same if I implement accelstepper and servo.

These changes are more exploratory, and don't have to be accepted with the samd fixes, but it made my life easier.

Old AccelStepperI2C has same includes as new I2Cwrapper: confusing conflict

If you have the old AccelStepperI2C installed with this new library, it won't pick up the right .h file (I think it does alphabetical order!).

How much of a problem is that? I think that everyone who upgrades to this new library will feel the pain. There does not seem to be a good deprecation/conflict mechanism.

There were some questions about deprecation/conflict:

#include <PinI2C.h>
Causes

Multiple libraries were found for "PinI2C.h"
 Used: /home/awgrover/Arduino/libraries/AccelStepperI2C
 Not used: /home/awgrover/Arduino/libraries/I2Cwrapper
exit status 1

But, that is the last message. And, for other .h can cause a bunch of preceding errors that are confusing, like

someclass does not name a type

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.