Skip to content

Wrapper around Arduino Wire library adding bus initialization and functions reporting connected device addresses

License

Notifications You must be signed in to change notification settings

MitchellBaldwin/I2CBus

Repository files navigation

NOTE for users of the Visual Micro extension to Visual Studio:

Arduino Compatible Cross Platform C++ Library Project : For more information see http://www.visualmicro.com
This project should work just as an Arduino library should work. Code is in the \src folder.
Add this project to any solution that contains an Arduino project and #include <headers.h> in code as you would any normal Arduino library headers. 
To enable intellisense and to support live build discovery outside of the "standard" Arduino library locations, ensure that the library is added as a shared project reference to the master Arduino project. To do this, right click the master project "References" node and then click "Add Reference". A window will open and the library will appear on the "Shared Projects" tab. Click the checkbox next to the library name to add the reference. If this library is moved then the reference to it must be removed/re-added from any arduino projects that use it.
VS2017 has a bug, workround: After moving existing source code within a "library or shared project", close and re-open the solution.
Visual Studio will display intellisense for libraries based on the platform/board that has been specified for the currently active "Startup Project" of the current solution.
Adding a shared library project reference for an incorrect architetcure (incorrect board selection) will result in intellisense and/or compile errors.
IMPORTANT: The arduino.cc Library Rules must be followed when adding code or restructing libraries.

blog: http://www.visualmicro.com/post/2017/01/16/Arduino-Cross-Platform-Library-Development.aspx

About

Wrapper around Arduino Wire library adding bus initialization and functions reporting connected device addresses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages