Is it possible to include a library from another library using the Arduino IDE?

前端 未结 5 873
栀梦
栀梦 2020-12-17 10:06

I\'m trying to write an Arduino library (effectively a C++ class) which itself references another library I have installed in my Mac\'s ~/Documents/Arduino/libraries directo

5条回答
  •  一个人的身影
    2020-12-17 11:01

    This issue was solved in the Arduino 1.6.6 release. The release notes of 1.6.6 mention that library to library dependencies have been fixed.

    Library to library dependencies: when your sketch imports a library, and that library uses another, the IDE will find out without you having to add a useless #include to your sketch

    Updating your version to 1.6.6 or newer will resolve your problem.

提交回复
热议问题