BOARD_LCD_BK_LIGHT_ON_LEVEL #define BOARD_LCD_H_RES 240 #define BOARD_LCD_V_RES 240 #define BOARD_LCD_CMD_BITS 8 #define BOARD_LCD_PARAM_BITS 8 #define LCD_HOST SPI2_HOST #elif CONFIG_CAMERA_MODULE_ESP_S3_EYE #define CAMERA_MODULE_NAME "ESP-S3-EYE" #define CAMERA_PIN_PWDN -1...
.pclk_hz = EXAMPLE_LCD_PIXEL_CLOCK_HZ, .lcd_cmd_bits = EXAMPLE_LCD_CMD_BITS, .lcd_param_bits = EXAMPLE_LCD_PARAM_BITS, .spi_mode =0, .trans_queue_depth =10, .on_color_trans_done = example_notify_lvgl_flush_ready, .user_ctx = &disp_drv, };// Attach the LCD to the SPI bu...
gpio_bits_set(LCD_GPIOPORT, LCD_PINS_RST | LCD_PINS_DC | LCD_PINS_BLK | LCD_PINS_CS); #else // LCD单独使用SPI,CS已经由硬件实现,此处不作配置 #error "Hardware CS is is a piece of shit, DO NOT try!" gpio_init_struct.gpio_pins = LCD_PINS_RST | LCD_PINS_DC | LCD_PINS_BLK...
static void ht1621b_write_data_bits(uint8_t data, uint8_t num_of_bits){ int8_t i;for (i...
lcd_param_bits Bit-width of LCD parameter dc_idle_level D/C pin level when idle dc_as_cmd_phase D/C line value is encoded into SPI transaction command phase dc_low_on_data If this flag is enabled, D/C line = 0 means transfer data, D/C line = 1 means transfer command octal_mode...
GPIO_SetBits(GPIOB,GPIO_Pin_7|GPIO_Pin_8|GPIO_Pin_9); #endif } //TFT写一个字节数据 //dat:写入的字节 //cmd: // 0:命令 // 1:数据 static void TFT_WriteByte(u8 dat,u8 cmd) { if(cmd == TFT_CMD) TFT_DC_L(); //命令 else TFT_DC_H();//数据 TFT_ReadWriteByte(dat);...
* @param none * @retval none */ void wk_spi2_init(void){ /* add user code begin spi2_...
lcd_param_bits = 8; ESP_ERROR_CHECK(esp_lcd_new_panel_io_spi(SPI3_HOST, &io_config, &panel_io)); // 初始化液晶屏驱动芯片ST7789 // 初始化液晶屏驱动芯片NV3023 ESP_LOGD(TAG, "Install LCD driver"); esp_lcd_panel_dev_config_t panel_config = {}; panel_config.reset_gpio_num = ...
bits_per_pixel = vesa_modes[VESA_MODES_COUNT - 2].bits_per_pixel; if ((penv = getenv ("video-mode")) != NULL) { ret = video_get_video_mode(&var_mode.xres, &var_mode.yres, &bits_per_pixel, &dumpfreq, &p); while ((i = video_get_param_len (p, ',')) != 0) { GET...
* @param 无 * @retval 无 */ void SPI_FLASH_BulkErase(void) { /* 发送FLASH写使能命令 */ SPI_FLASH_WriteEnable(); /* 整块 Erase */ /* 选择FLASH: CS低电平 */ SPI_FLASH_CS_LOW(); /* 发送整块擦除指令*/ SPI_FLASH_SendByte(W25X_ChipErase); ...