mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Merge branch 'master' of https://github.com/adafruit/Adafruit-GFX-Library
This commit is contained in:
commit
fe0683afe0
@ -330,7 +330,7 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h, SPIClass *spiClass,
|
||||
@param busWidth If tft16 (enumeration in header file), is a 16-bit
|
||||
parallel connection, else 8-bit.
|
||||
16-bit isn't fully implemented or tested yet so
|
||||
applications should pass "tft8" for now...needed to
|
||||
applications should pass "tft8bitbus" for now...needed to
|
||||
stick a required enum argument in there to
|
||||
disambiguate this constructor from the soft-SPI case.
|
||||
Argument is ignored on 8-bit architectures (no 'wide'
|
||||
@ -361,7 +361,7 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h, tftBusWidth busWidth,
|
||||
tft8._d0 = d0;
|
||||
tft8._wr = wr;
|
||||
tft8._rd = rd;
|
||||
tft8.wide = (busWidth == tft16);
|
||||
tft8.wide = (busWidth == tft16bitbus);
|
||||
#if defined(USE_FAST_PINIO)
|
||||
#if defined(HAS_PORT_SET_CLR)
|
||||
#if defined(CORE_TEENSY)
|
||||
@ -662,6 +662,16 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
|
||||
} else if(*(SERCOM **)hwspi._spi == &sercom5) {
|
||||
dmac_id = SERCOM5_DMAC_ID_TX;
|
||||
data_reg = &SERCOM5->SPI.DATA.reg;
|
||||
#endif
|
||||
#if defined SERCOM6
|
||||
} else if(*(SERCOM **)hwspi._spi == &sercom6) {
|
||||
dmac_id = SERCOM6_DMAC_ID_TX;
|
||||
data_reg = &SERCOM6->SPI.DATA.reg;
|
||||
#endif
|
||||
#if defined SERCOM7
|
||||
} else if(*(SERCOM **)hwspi._spi == &sercom7) {
|
||||
dmac_id = SERCOM7_DMAC_ID_TX;
|
||||
data_reg = &SERCOM7->SPI.DATA.reg;
|
||||
#endif
|
||||
}
|
||||
dma.setPriority(DMA_PRIORITY_3);
|
||||
|
@ -94,7 +94,7 @@ typedef volatile PORT_t* PORTreg_t; ///< PORT register type
|
||||
// an enumerated type as the first argument: tft8 (for 8-bit parallel) or
|
||||
// tft16 (for 16-bit)...even though 16-bit isn't fully implemented or tested
|
||||
// and might never be, still needed that disambiguation from soft SPI.
|
||||
enum tftBusWidth { tft8, tft16 }; ///< For first arg to parallel constructor
|
||||
enum tftBusWidth { tft8bitbus, tft16bitbus }; ///< For first arg to parallel constructor
|
||||
|
||||
// CLASS DEFINITION --------------------------------------------------------
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Adafruit GFX Library # [![Build Status](https://travis-ci.com/adafruit/Adafruit-GFX-Library.svg?branch=master)](https://travis-ci.org/adafruit/Adafruit-GFX-Library)
|
||||
# Adafruit GFX Library [![Build Status](https://travis-ci.com/adafruit/Adafruit-GFX-Library.svg?branch=master)](https://travis-ci.com/adafruit/Adafruit-GFX-Library)
|
||||
|
||||
This is the core graphics library for all our displays, providing a common set of graphics primitives (points, lines, circles, etc.). It needs to be paired with a hardware-specific library for each display device we carry (to handle the lower-level functions).
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=Adafruit GFX Library
|
||||
version=1.4.9
|
||||
version=1.4.11
|
||||
author=Adafruit
|
||||
maintainer=Adafruit <info@adafruit.com>
|
||||
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.
|
||||
|
Loading…
Reference in New Issue
Block a user