esp8266开发入门教程(基于Arduino)——环境安装 2.2 安装库 打开Arduino IDE,依次打开 工具 -> 管理库… 在搜索框输入需要安装的库名称,找到对应的库,点击安装即可。 本文需要使用的Arduino库如下: 关于LCD驱动的库其实有很多,之所以用TFT_eSPI是因为这个库比较通用,支持很多驱动IC,而且有些图形库也依赖
(could connect to Arduino RESET pin) //#define TFT_BL 32 // LED back-light (required for M5Stack) // ### EDIT THE PINs BELOW TO SUIT YOUR ESP32 PARALLEL TFT SETUP ### // The library supports 8-bit parallel TFTs with the ESP32, the pin // selection below is compatible with ESP...
Here are some basic pre-defined example colours(16-bit) including in the LCD library: #defineTFT_BLACK0x0000/* 0, 0, 0 */ #defineTFT_NAVY0x000F/* 0, 0, 128 */ #defineTFT_DARKGREEN0x03E0/* 0, 128, 0 */ #defineTFT_DARKCYAN0x03EF/* 0, 128, 128 */ ...
(int32_t x0, int32_t y0, int32_t w, int32_t h, const uint16_t *data); // These are used by pushSprite for 1 and 8 bit colours void pushImage(int32_t x0, int32_t y0, int32_t w, int32_t h, uint8_t *data, bool bpp8 = true); void pushImage(int32_t x0, ...
#define TFT_RST -1 // Reset pin (could connect to Arduino RESET pin) #define TFT_BL 17 // LED back-light //#define TOUCH_CS 21 // Chip select pin (T_CS) of touch screen // ### // // Section 3. Define the fonts that are to be used here // // ###...