I’m trying to get a DS18B20 temp sensor working with my Adafruit Grand Central board using the OneWire.h library. When I try to compile it is giving me an error:
Arduino: 1.8.13 (Windows Store 22.214.171.124) (Windows 10), Board: “Adafruit Grand Central M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off”
In file included from sketch\sensorop.h:2,
C:\Users\user\OneDrive\Documents\Arduino\libraries\OneWire/OneWire.h:145:2: error: #error “Please define I/O register types here”
145 | #error “Please define I/O register types here”
exit status 1
Error compiling for board Adafruit Grand Central M4 (SAMD51).
It seems to me that I have to add something to the OneWire.h file but a lot of the code there is foreign to me. Does any one have any suggestions of what to add?