My lib class is recognised but not working

Same as for Lis3dh library not working - #2 by maxgerhardt.

Do not call external libraries / object methods in your constructor, you don’t know whether they’ve been initialized before your constructor was called.

Have an empty constructor and the original code from the constructor in a DisplayOled::begin() method. Call this method in your setup() function.

1 Like