Go Down

Topic: MKRZERO util/delay.h replacement (Read 1 time) previous topic - next topic


Dear Sirs,

I am trying to compile the library Adafruit_SH1106 from


unfortunately the code is quite old and when I tried to compile for MKRZERO I obtained the error:

../Arduino/libraries/Adafruit_SH1106/Adafruit_SH1106.cpp:31:11: fatal error: util/delay.h: No such file or directory
  #include <util/delay.h>
compilation terminated.
exit status 1
Error compiling for board Arduino MKRZERO.

I googled the web and I found the problem is caused by the fact that util/delay.h is for the AVR not for SAMD.

I am looking for a possible workaround.
Thank you

Go Up