Arduino Custom Library HX711 Third Party Error

27 ビュー (過去 30 日間)
Mika Clark
Mika Clark 2020 年 12 月 28 日
コメント済み: Yan Lütolf 2021 年 12 月 4 日
I keep getting the error: "The Arduino source 'HX711/HX711.h' for libraries 'ExampleAddon/HX711' cannot be found. Install the 3P library source first and try again. " I am using this library. I have tried the troubleshooting solutions here with no success.
When I use listArduinoLibraries, it recognizes the HX711 library but will not let me do anything with it.
Has anyone been successful in using this library at all? Why do I keep getting this error? I see quite a few people are having this issue but it appears like no one has found a solution. Any insight would be helpful, thanks.

採用された回答

Chidvi Modala
Chidvi Modala 2020 年 12 月 31 日
You may need to override constant properties in the class "basic_HX711" to include necessary header and third-party source files. I am assuming you are not having 3rd party library file. If so, you may update the +arduinoioaddons\+basicHX711 file by modifying line 34
from:
LibraryHeaderFiles = 'basic_HX711/basic_HX711.h'
to:
LibraryHeaderFiles = {}
You can refer to this example
  2 件のコメント
Mika Clark
Mika Clark 2021 年 1 月 2 日
I am not sure why, but this issue was resolved by reverting my version of Matlab back to R2019b from R2020b. Thank you for the help and if this problem comes up again I will try this solution.
Yan Lütolf
Yan Lütolf 2021 年 12 月 4 日
Thank you, this solved my problem!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by