Including libraries

I’m trying to include libraries and get an error on what I think is the most basic attempt:

#include "OneWire.h"
void setup(void) { 
    }
void loop(){
    }

which gives me the error:

sparktemp1.cpp:1:21: fatal error: OneWire.h: No such file or directory
#include "OneWire.h"
^
compilation terminated.
make: *** [sparktemp1.o] Error 1

I’m sure I’m doing something really basic wrong here. Apologies in advance.

@jford,

Look for the libraries tab and you will see the ONEWIRE library.

Hit on include in app

Also, remember to remove the `#include “OneWire.h” you added manually :wink:

1 Like

Thanks! Hadn’t seen the ‘include in app’ button.

1 Like