Compiler error attempting to include OneWire.h.

I am using the Thing Dev board. I’d like to read the DS18B20 temperature probes via the one wire interface. Here is a sketch that won’t compile:

#include <OneWire.h>

void setup() {

Serial.begin(115200);

}

void loop() {

Serial.println(“Hello”);

}

Here is the compiler error I get:

In file included from C:\my_sketches\test_thing_with_onewire\test_thing_with_onewire.ino:1:

C:\Users\george\Documents\Arduino\libraries\OneWire/OneWire.h:108:2: error: #error “Please define I/O register types here”

108 | #error “Please define I/O register types here”

| ^~~~~

exit status 1

Error compiling for board SparkFun ESP8266 Thing Dev.

I’m stuck. Maybe SparkFun has their own one-wire library that I have to use with the Thing. Please advise.

There are multiple versions of onewire. Try to select the Paul Stoffregen version 2.3.6 in library manager and use their example.

Don’t know from where you downloaded the onewire.h library. You can download the onewire.h library and DallasTemperature.h library from the link given here: https://www.theengineeringprojects.com/ … duino.html

If it does not work, here you can get some clues: https://forum.arduino.cc/t/solved-onewi … ory/481619