tell ESP about MSBFIRST

This commit is contained in:
ladyada 2019-05-18 00:39:42 -04:00
parent ac91c98c07
commit 9db807ebc1
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,10 @@
#define Adafruit_SPIDevice_h
#if defined(__AVR__) || defined(ESP32) || defined(ESP8266) // modern SPI definitions have a BitOrder enum
typedef uint8_t BitOrder;
typedef uint8_t BitOrder;
#endif
#if defined(ESP32)
#define MSBFIRST SPI_MSBFIRST
#endif
class Adafruit_SPIDevice {