sparkfun / SparkFun_LIS2DH12_Arduino_Library

Library for I2C communication with ST LIS2DH12 low power accelerometer
Other
15 stars 10 forks source link

'Wire1' was not declared in this scope #1

Closed harry1329 closed 4 years ago

harry1329 commented 4 years ago

Hello I'm Wonhyuck.

I tried to compile the example 'Example1_BasicReadings', but it shows a compile error.

And it says 'Wire1' was not declared in this scope.

I Googled it, and some people said that re-install esp32 in board manager, but it doesn't work.

I tried to find Wire1 in Wire library, but I couldn't find it.

How can I solve this problem?

I'm using the newest arduino IDE and MEGA 2560 board.

Thank you very much!

nseidle commented 4 years ago

I've re-written the examples to use Wire instead of Wire1. This should fix your issue.