I'm struggling a bit with Arduino language + its IDE not being 100% real C++. I wrote my own I2C library for a sensor but can't get the IDE's compiler to recognise it. I'm using Ubuntu 18.04.
I get no such file or directory
for all of these things I've tried:
- Include the
.h
file by absolute and relative path in the.ino
code - Put
.cpp
+.h
files in ~/Arduino/libraries - Put
.cpp
+.h
files in ~/sketchbook/libraries - Put
.cpp
+.h
files in ~/sketchbook/libraries/mylibrary - Put
.cpp
+.h
files in ~/sketchbook/libraries/mylibrary and try to "install" the library in the IDE (Sketch -> Include library -> Manage libraries; it's not listed)
I'm following the official guide here. Any ideas on how to get the compiler to recognise my library?