Add ST7735 driver to Quantum Painter (#17848)
This commit is contained in:
		
							parent
							
								
									09ea5f6337
								
							
						
					
					
						commit
						2bdd73f801
					
				
					 6 changed files with 264 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -448,6 +448,10 @@ int16_t qp_drawtext_recolor(painter_device_t device, uint16_t x, uint16_t y, pai
 | 
			
		|||
#    include "qp_st7789.h"
 | 
			
		||||
#endif // QUANTUM_PAINTER_ST7789_ENABLE
 | 
			
		||||
 | 
			
		||||
#ifdef QUANTUM_PAINTER_ST7735_ENABLE
 | 
			
		||||
#    include "qp_st7735.h"
 | 
			
		||||
#endif // QUANTUM_PAINTER_ST7735_ENABLE
 | 
			
		||||
 | 
			
		||||
#ifdef QUANTUM_PAINTER_GC9A01_ENABLE
 | 
			
		||||
#    include "qp_gc9a01.h"
 | 
			
		||||
#endif // QUANTUM_PAINTER_GC9A01_ENABLE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ QUANTUM_PAINTER_DRIVERS ?=
 | 
			
		|||
QUANTUM_PAINTER_ANIMATIONS_ENABLE ?= yes
 | 
			
		||||
 | 
			
		||||
# The list of permissible drivers that can be listed in QUANTUM_PAINTER_DRIVERS
 | 
			
		||||
VALID_QUANTUM_PAINTER_DRIVERS := ili9163_spi ili9341_spi ili9488_spi st7789_spi gc9a01_spi ssd1351_spi
 | 
			
		||||
VALID_QUANTUM_PAINTER_DRIVERS := ili9163_spi ili9341_spi ili9488_spi st7789_spi st7735_spi gc9a01_spi ssd1351_spi
 | 
			
		||||
 | 
			
		||||
#-------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -83,6 +83,17 @@ define handle_quantum_painter_driver
 | 
			
		|||
            $(DRIVER_PATH)/painter/tft_panel/qp_tft_panel.c \
 | 
			
		||||
            $(DRIVER_PATH)/painter/st77xx/qp_st7789.c
 | 
			
		||||
 | 
			
		||||
    else ifeq ($$(strip $$(CURRENT_PAINTER_DRIVER)),st7735_spi)
 | 
			
		||||
        QUANTUM_PAINTER_NEEDS_COMMS_SPI := yes
 | 
			
		||||
        QUANTUM_PAINTER_NEEDS_COMMS_SPI_DC_RESET := yes
 | 
			
		||||
        OPT_DEFS += -DQUANTUM_PAINTER_ST7735_ENABLE -DQUANTUM_PAINTER_ST7735_SPI_ENABLE
 | 
			
		||||
        COMMON_VPATH += \
 | 
			
		||||
            $(DRIVER_PATH)/painter/tft_panel \
 | 
			
		||||
            $(DRIVER_PATH)/painter/st77xx
 | 
			
		||||
        SRC += \
 | 
			
		||||
            $(DRIVER_PATH)/painter/tft_panel/qp_tft_panel.c \
 | 
			
		||||
            $(DRIVER_PATH)/painter/st77xx/qp_st7735.c
 | 
			
		||||
 | 
			
		||||
    else ifeq ($$(strip $$(CURRENT_PAINTER_DRIVER)),gc9a01_spi)
 | 
			
		||||
        QUANTUM_PAINTER_NEEDS_COMMS_SPI := yes
 | 
			
		||||
        QUANTUM_PAINTER_NEEDS_COMMS_SPI_DC_RESET := yes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue