Skip to content

Commit 9985bad

Browse files
Minor fix for future Teensy boards (using AVR conventions)
1 parent c389591 commit 9985bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utility/direct_pin_read.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef direct_pin_read_h_
22
#define direct_pin_read_h_
33

4-
#if defined(__AVR__) || defined(__MK20DX128__) || defined(__MK20DX256__)
4+
#if defined(__AVR__) || (defined(__arm__) && defined(CORE_TEENSY))
55

66
#define IO_REG_TYPE uint8_t
77
#define PIN_TO_BASEREG(pin) (portInputRegister(digitalPinToPort(pin)))

0 commit comments

Comments
 (0)