manitou
Senior Member+
The spi4teens3 library does not comple for teensy 3.1. There is actually NOT a file mk20dx256.h, so the
#include <mk20dx128.h>
in spi4teensy3.h is apparently adequate for both 3.0 and 3.1. (I was concerned about the need for mk20dx256.h when I fixed the Wire library to get it to compile for 3.1, but Wire worked fine with just mk20dx128.h ) You probably need to retain
#if defined(__MK20DX128__) || defined(__MK20DX256__)
#include <mk20dx128.h>
in spi4teensy3.h is apparently adequate for both 3.0 and 3.1. (I was concerned about the need for mk20dx256.h when I fixed the Wire library to get it to compile for 3.1, but Wire worked fine with just mk20dx128.h ) You probably need to retain
#if defined(__MK20DX128__) || defined(__MK20DX256__)