Fix image cropping bug plus minor update
Images/sprites overlapping both sides of the display were not correctly cropped. Option added to allow RGB<>BGR colourr swap option to be used. ESP8266 Wemos D1 R1 pin numbering difference accomodated. TTGO T4 setup changed to use HSPI port.
This commit is contained in:
1 parent
d3210a7ee6
commit
e9d405ea1f
12 files changed
+65
-53
No files matched your search
+14
-14
@@ -126,21 +126,21 @@
|
||||
#endif
|
||||
|
||||
|
||||
// These are the pins for all ESP8266 boards
|
||||
// Name GPIO Function
|
||||
#define PIN_D0 16 // WAKE
|
||||
#define PIN_D1 5 // User purpose
|
||||
#define PIN_D2 4 // User purpose
|
||||
#define PIN_D3 0 // Low on boot means enter FLASH mode
|
||||
#define PIN_D4 2 // TXD1 (must be high on boot to go to UART0 FLASH mode)
|
||||
#define PIN_D5 14 // HSCLK
|
||||
#define PIN_D6 12 // HMISO
|
||||
#define PIN_D7 13 // HMOSI RXD2
|
||||
#define PIN_D8 15 // HCS TXD0 (must be low on boot to enter UART0 FLASH mode)
|
||||
#define PIN_D9 3 // RXD0
|
||||
#define PIN_D10 1 // TXD0
|
||||
// These are the pins for ESP8266 boards
|
||||
// Name GPIO NodeMCU Function
|
||||
#define PIN_D0 D0 // GPIO16 WAKE
|
||||
#define PIN_D1 D1 // GPIO5 User purpose
|
||||
#define PIN_D2 D2 // GPIO4 User purpose
|
||||
#define PIN_D3 D3 // GPIO0 Low on boot means enter FLASH mode
|
||||
#define PIN_D4 D4 // GPIO2 TXD1 (must be high on boot to go to UART0 FLASH mode)
|
||||
#define PIN_D5 D5 // GPIO14 HSCLK
|
||||
#define PIN_D6 D6 // GPIO12 HMISO
|
||||
#define PIN_D7 D7 // GPIO13 HMOSI RXD2
|
||||
#define PIN_D8 D8 // GPIO15 HCS TXD0 (must be low on boot to enter UART0 FLASH mode)
|
||||
#define PIN_D9 3 // RXD0
|
||||
#define PIN_D10 1 // TXD0
|
||||
|
||||
#define PIN_MOSI 8 // SD1
|
||||
#define PIN_MOSI 8 // SD1 FLASH and overlap mode
|
||||
#define PIN_MISO 7 // SD0
|
||||
#define PIN_SCLK 6 // CLK
|
||||
#define PIN_HWCS 0 // D3
|
||||
|
||||
Reference in new issue
Block a user