Merge 8a2e205588 into cb1fb31e13
This commit is contained in:
commit
3270413481
|
|
@ -167,6 +167,10 @@ void TFT_eSPI::init(void)
|
|||
|
||||
SPI.begin(); // This will set MISO to input
|
||||
|
||||
#ifdef D6_NOT_USED_FOR_MISO
|
||||
pinMode(D6, OUTPUT);
|
||||
#endif
|
||||
|
||||
#ifndef SUPPORT_TRANSACTIONS
|
||||
#ifdef SET_SPI_TO_LSB_FIRST
|
||||
SPI.setBitOrder(LSBFIRST);
|
||||
|
|
|
|||
12
User_Setup.h
12
User_Setup.h
|
|
@ -125,10 +125,16 @@
|
|||
|
||||
// ##################################################################################
|
||||
//
|
||||
// Section 4. Not used section
|
||||
// Section 4. Define whether D6 is used for MISO
|
||||
//
|
||||
// ##################################################################################
|
||||
|
||||
// Comment out the #define below to free up pin D6 for uses other than MISO
|
||||
// Specifically, this way it can be used for DC / CS
|
||||
// May be useful for pin-constrained applications
|
||||
// WARNING: this only works if the display is used write-only
|
||||
//
|
||||
// #define D6_NOT_USED_FOR_MISO
|
||||
|
||||
// ##################################################################################
|
||||
//
|
||||
|
|
@ -145,8 +151,8 @@
|
|||
// #define SPI_FREQUENCY 5000000
|
||||
// #define SPI_FREQUENCY 10000000
|
||||
// #define SPI_FREQUENCY 20000000
|
||||
#define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3
|
||||
// #define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS
|
||||
// #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3
|
||||
#define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS
|
||||
// #define SPI_FREQUENCY 80000000
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue