Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation mesure de co² #3597

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Processors/TFT_eSPI_ESP32.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ bool TFT_eSPI::initDMA(bool ctrl_cs)
.max_transfer_sz = TFT_WIDTH * TFT_HEIGHT * 2 + 8, // TFT screen size
.flags = 0,
.intr_flags = 0
};
}

int8_t pin = -1;
if (ctrl_cs) pin = TFT_CS;
Expand All @@ -826,7 +826,7 @@ bool TFT_eSPI::initDMA(bool ctrl_cs)
#else
.post_cb = dma_end_callback
#endif
};
}
ret = spi_bus_initialize(spi_host, &buscfg, DMA_CHANNEL);
ESP_ERROR_CHECK(ret);
ret = spi_bus_add_device(spi_host, &devcfg, &dmaHAL);
Expand Down
4 changes: 2 additions & 2 deletions TFT_eSPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,10 +800,10 @@ void TFT_eSPI::init(uint8_t tc)
}


/***************************************************************************************
/* **************************************************************************************
** Function name: setRotation
** Description: rotate the screen orientation m = 0-3 or 4-7 for BMP drawing
***************************************************************************************/
************************************************************************************** */
void TFT_eSPI::setRotation(uint8_t m)
{

Expand Down
4 changes: 2 additions & 2 deletions User_Setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
//#define RPI_DISPLAY_TYPE // 20MHz maximum SPI

// Only define one driver, the other ones must be commented out
#define ILI9341_DRIVER // Generic driver for common displays
//#define ILI9341_DRIVER // Generic driver for common displays
//#define ILI9341_2_DRIVER // Alternative ILI9341 driver, see https://github.com/Bodmer/TFT_eSPI/issues/1172
//#define ST7735_DRIVER // Define additional parameters below for this display
//#define ILI9163_DRIVER // Define additional parameters below for this display
Expand All @@ -62,7 +62,7 @@
//#define SSD1963_800_DRIVER
//#define SSD1963_800ALT_DRIVER
//#define ILI9225_DRIVER
//#define GC9A01_DRIVER
#define GC9A01_DRIVER

// Some displays support SPI reads via the MISO pin, other displays have a single
// bi-directional SDA pin and the library will try to read this via the MOSI line.
Expand Down
8 changes: 4 additions & 4 deletions User_Setups/Setup200_GC9A01.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
// For ESP32 Dev board (only tested with GC9A01 display)
// The hardware SPI can be mapped to any pins

#define TFT_MOSI 15 // In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 14
#define TFT_MOSI 9 // In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 11
#define TFT_CS 5 // Chip select control pin
#define TFT_DC 27 // Data Command control pin
#define TFT_RST 33 // Reset pin (could connect to Arduino RESET pin)
#define TFT_DC 7 // Data Command control pin
#define TFT_RST 3 // Reset pin (could connect to Arduino RESET pin)
#define TFT_BL 22 // LED back-light


Expand Down