[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

Using IoAbstraction with PlatformIO RSS feed
Forum Index » IoAbstraction & TaskManagerIO
Author Message
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
When using IoAbstraction with PlatformIO on Arduino, I get an error in my sketch saying that the Wire cannot be found.

In file included from YourPath/IoAbstraction/src/EepromAbstractionWire.cpp:6:0:
YourPath/IoAbstraction/src/EepromAbstractionWire.h:18:18: fatal error: Wire.h: No such file or directory`

davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
This is because IoAbstraction depends on Wire library, but in platformIO by default, it does not look into conditionally included blocks. Notice that all examples always include "Wire.h". You can either change platform IO's library dependency finder mode to "chain+" or you can add Wire.h as an include in your sketch.

For example at the top of the sketch add:

#include <Wire.h>
 
Forum Index » IoAbstraction & TaskManagerIO
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.