diff --git a/Readme.md b/Readme.md index 9330317..3325c64 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,4 @@ -PinChangeInterrupt Library 1.2.5 +PinChangeInterrupt Library 1.2.6 ================================ ![Header Picture](header.png) @@ -280,6 +280,9 @@ the new PinChangeInterrupts may help you a lot. Version History =============== ``` +1.2.6 Release (10.02.2018) +* Fix makefile compilation problems + 1.2.5 Release (02.09.2017) * Fixed makefile compilation * Added support to disable pcint/port via -DPCINT_DISABLE_PORT0 etc. @@ -338,7 +341,7 @@ License and Copyright If you use this library for any cool project let me know! ``` -Copyright (c) 2014-2015 NicoHood +Copyright (c) 2014-2018 NicoHood See the readme for credit to other people. Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/library.properties b/library.properties index fddfd27..7b5b8ba 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=PinChangeInterrupt -version=1.2.4 +version=1.2.6 author=NicoHood maintainer=NicoHood sentence=A simple & compact PinChangeInterrupt library for Arduino. diff --git a/src/PinChangeInterrupt.h b/src/PinChangeInterrupt.h index b45267e..ac51345 100644 --- a/src/PinChangeInterrupt.h +++ b/src/PinChangeInterrupt.h @@ -1,5 +1,5 @@ /* -Copyright (c) 2014-2017 NicoHood +Copyright (c) 2014-2018 NicoHood See the readme for credit to other people. Permission is hereby granted, free of charge, to any person obtaining a copy @@ -25,7 +25,7 @@ THE SOFTWARE. #pragma once // Software Version -#define PCINT_VERSION 125 +#define PCINT_VERSION 126 #include #include @@ -38,13 +38,19 @@ THE SOFTWARE. #endif #else -enum pcint_mode_t -{ - LOW = 0, - CHANGE = 1, - FALLING = 2, - RISING = 3, -}; + +#ifndef LOW +#define LOW 0x0 +#endif +#ifndef CHANGE +#define CHANGE 0x1 +#endif +#ifndef FALLING +#define FALLING 0x2 +#endif +#ifndef RISING +#define RISING 0x3 +#endif #endif