This commit is contained in:
ladyada committed 2018-07-14 17:04:11 -04:00
1 parent 7f2d11709c
commit d5d6804100
1 file changed
+5
+5
View File
@@ -1,3 +1,5 @@
#ifndef _ADAFRUIT_SPITFT_MACROS
#define _ADAFRUIT_SPITFT_MACROS
/*
* Control Pins
@@ -112,3 +114,6 @@ static inline uint8_t _avr_spi_read(void) {
#define SPI_WRITE16(s) if(_sclk < 0){HSPI_WRITE16(s);}else{SSPI_WRITE16(s);}
#define SPI_WRITE32(l) if(_sclk < 0){HSPI_WRITE32(l);}else{SSPI_WRITE32(l);}
#define SPI_WRITE_PIXELS(c,l) if(_sclk < 0){HSPI_WRITE_PIXELS(c,l);}else{SSPI_WRITE_PIXELS(c,l);}
#endif