Forum >Another noob question: OneWire 2.3.5 won't compile
Another noob question: OneWire 2.3.5 won't compile

I'm rather new to Arduino, it's the first time I use a Bluno M0, now I'm trying to read a DS18B20 temperature sensor, so I need OneWire, but I'm stuck with an error message:
Code is simple
When compiling I get this:
I guess it must be simple to solve, if I just knew what to do
Thank-you for any help !
Code is simple

Code: Select all
#include <OneWire.h> //Ver 2.3.5 installed void setup() { } void loop() { }
When compiling I get this:
Code: Select all
Compilation is ok if I just select a different board.Arduino: 1.8.11 (Windows Store 1.8.28.0) (Windows 10), Board: "Bluno M0 MainBoard" Warning: platform.txt from core 'DFRobot Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}". Consider upgrading this core. C:\Users\gft\Documents\Arduino\libraries\OneWire\OneWire.cpp:496:30: error: expected initializer before 'dscrc2x16_table' static const uint8_t PROGMEM dscrc2x16_table[] = { ^ C:\Users\gft\Documents\Arduino\libraries\OneWire\OneWire.cpp: In static member function 'static uint8_t OneWire::crc8(const uint8_t*, uint8_t)': C:\Users\gft\Documents\Arduino\libraries\OneWire\OneWire.cpp:511:23: error: 'dscrc2x16_table' was not declared in this scope crc = pgm_read_byte(dscrc2x16_table + (crc & 0x0f)) ^ ^ C:\Users\gft\Documents\Arduino\libraries\OneWire\OneWire.cpp:511:53: error: 'pgm_read_byte' was not declared in this scope crc = pgm_read_byte(dscrc2x16_table + (crc & 0x0f)) ^ ^ exit status 1 Error compiling for board Bluno M0 MainBoard.
I guess it must be simple to solve, if I just knew what to do
Thank-you for any help !