Update librairies

This commit is contained in:
sinseman
2014-08-31 11:02:51 +02:00
parent ef5cb43d1c
commit 84f8be374b
7 changed files with 61 additions and 21 deletions

View File

@@ -2,6 +2,7 @@
* http://www.pjrc.com/teensy/td_libs_Encoder.html
* Copyright (c) 2011,2013 PJRC.COM, LLC - Paul Stoffregen <paul@pjrc.com>
*
* Version 1.2 - fix -2 bug in C-only code
* Version 1.1 - expand to support boards with up to 60 interrupts
* Version 1.0 - initial release
*
@@ -284,7 +285,7 @@ private:
arg->position += 2;
return;
case 6: case 9:
arg->position += 2;
arg->position -= 2;
return;
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef direct_pin_read_h_
#define direct_pin_read_h_
#if defined(__AVR__) || defined(__MK20DX128__)
#if defined(__AVR__) || defined(__MK20DX128__) || defined(__MK20DX256__)
#define IO_REG_TYPE uint8_t
#define PIN_TO_BASEREG(pin) (portInputRegister(digitalPinToPort(pin)))