Skip to content

Commit

Permalink
fixed fastio for esp, undef for anything else
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jul 14, 2018
1 parent 640e5a0 commit ebb199c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Adafruit_SPITFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@
#include <SPI.h>
#include "Adafruit_GFX.h"

#define USE_FAST_PINIO

#if defined(__AVR__)
typedef volatile uint8_t RwReg;
#elif defined(ARDUINO_STM32_FEATHER)
typedef volatile uint32 RwReg;
#elif defined(ARDUINO_FEATHER52) || defined(__arm__)
typedef volatile uint32_t RwReg;
#elif defined(ESP32) || defined(ESP8266)
typedef volatile uint32_t RwReg;
#else
#undefine USE_FAST_PINIO
#endif

#define USE_FAST_PINIO

/// A heavily optimized SPI display subclass of GFX. Manages SPI bitbanging, transactions, DMA, etc! Despite being called SPITFT, the classic SPI data/command interface is also used by OLEDs.
class Adafruit_SPITFT : public Adafruit_GFX {
Expand Down

0 comments on commit ebb199c

Please sign in to comment.