Skip to content

Commit

Permalink
guards!
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jul 14, 2018
1 parent 7f2d117 commit d5d6804
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Adafruit_SPITFT_Macros.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef _ADAFRUIT_SPITFT_MACROS
#define _ADAFRUIT_SPITFT_MACROS

/*
* Control Pins
Expand Down Expand Up @@ -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

0 comments on commit d5d6804

Please sign in to comment.