Where is <I2C.h>

Does I2C.h exist?
example:
#include <I2C.h>

I kept getting an error in compiling- see below. how do I get I2C.h ?

Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"

as3935_lightning_i2c_nokia5110_instructables:12:10: fatal error: I2C.h: No such file or directory

#include "I2C.h"

      ^~~~~~~

compilation terminated.

exit status 1

I2C.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

1 Like

Please provide a link to where you got the code

Link: https://www.instructables.com/Arduino-Pocket-Lightning-Detector/.
I could spend time to see what it does, or I could just tell you to stay away from it :thinking:

The standard library uses Wire.h instead.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.