mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Add support for ST7789V display module (as on TTGO T-Display) (#1050)
* TFT-LCD ST7789V of ESP32 TTGO. This patch allows you to use TFT-LCD ST7789V of ESP32 TTGO * Lots of polish and a few tweaks * Add test * Add color to core, take 1 * Where did those tabs come from? * Fix lines too long * Added color component * Linted * Rebase, SPI fix, test * Shuffle bits * One more thing...oops * Image type fix...oops * Make display_buffer use Color * Fix BGR/RGB, remove predefined colors * Fix all the things * renamed colors to color * migrate max7219 Co-authored-by: musk95 <musk95@naver.com> Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
		| @@ -1507,6 +1507,16 @@ interval: | ||||
|  | ||||
|             id(btn_left)->set_threshold(btn_left_state * 0.9); | ||||
|  | ||||
| color: | ||||
|   - id: kbx_red | ||||
|     red: 100% | ||||
|     green: 1% | ||||
|     blue: 2% | ||||
|   - id: kbx_blue | ||||
|     red: 0% | ||||
|     green: 1% | ||||
|     blue: 100% | ||||
|  | ||||
| display: | ||||
| - platform: lcd_gpio | ||||
|   dimensions: 18x4 | ||||
| @@ -1591,6 +1601,13 @@ display: | ||||
|   full_update_every: 30 | ||||
|   lambda: |- | ||||
|     it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
| - platform: st7789v | ||||
|   cs_pin: GPIO5 | ||||
|   dc_pin: GPIO16 | ||||
|   reset_pin: GPIO23 | ||||
|   backlight_pin: GPIO4 | ||||
|   lambda: |- | ||||
|     it.rectangle(0, 0, it.get_width(), it.get_height()); | ||||
|  | ||||
| tm1651: | ||||
|   id: tm1651_battery | ||||
|   | ||||
		Reference in New Issue
	
	Block a user