Skip to content

Commit

Permalink
Version 1.2.6
Browse files Browse the repository at this point in the history
NicoHood committed Feb 10, 2018
1 parent 5e8a517 commit bd868ad
Showing 3 changed files with 21 additions and 12 deletions.
7 changes: 5 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=PinChangeInterrupt
version=1.2.4
version=1.2.6
author=NicoHood
maintainer=NicoHood <blog@NicoHood.de>
sentence=A simple & compact PinChangeInterrupt library for Arduino.
24 changes: 15 additions & 9 deletions src/PinChangeInterrupt.h
Original file line number Diff line number Diff line change
@@ -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 <avr/io.h>
#include <avr/interrupt.h>
@@ -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

0 comments on commit bd868ad

Please sign in to comment.