Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the library for esp32 #2

Open
720251 opened this issue Nov 3, 2022 · 1 comment
Open

Problems with the library for esp32 #2

720251 opened this issue Nov 3, 2022 · 1 comment

Comments

@720251
Copy link

720251 commented Nov 3, 2022

I have some problems with the library when using my esp32 board. It gives me an error in #include <avr\pgmspace.h> and #include <util/delay.h>, "not such file or directory". If I replace with #include <pgmspace.h> and #define _delay_ms(ms) delayMicroseconds((ms) * 1000) it compiles but I get no admittance values.
The libraries and the example code work correctly with the Arduino UNO boards.
Could you guide me to know what could be the error?

@CedricCourson
Copy link

Hello @720251

I had the same issue, and I solve it by adding #include <Arduino.h> in the file CN0349.cpp.
I added this to line 19, just below #include <wire.h>

It works for me ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants