diff --git a/myHal.cpp_example.txt b/myHal.cpp_example.txt index 13a6b4b..32aa12e 100644 --- a/myHal.cpp_example.txt +++ b/myHal.cpp_example.txt @@ -11,6 +11,10 @@ // To prevent this, temporarily rename the file to myHal.txt or similar. // +// The #if directive prevent compile errors for Uno and Nano by excluding the +// HAL directives from the build. +#if !defined(IO_NO_HAL) + // Include devices you need. #include "IODevice.h" #include "IO_HCSR04.h" // Ultrasonic range sensor