qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

qp_st7735_opcodes.h (1778B)


      1 // Copyright 2022 David Hoelscher (@customMK)
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 #pragma once
      4 
      5 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      6 // Quantum Painter ST7735 additional command opcodes
      7 
      8 // Panel Function Commands
      9 #define ST7735_SET_FRAME_RATE_CTL_1 0xB1 // Set frame rate control 1
     10 #define ST7735_SET_FRAME_RATE_CTL_2 0xB2 // Set frame rate control 2
     11 #define ST7735_SET_FRAME_RATE_CTL_3 0xB3 // Set frame rate control 3
     12 #define ST7735_SET_INVERSION_CTL 0xB4    // Set inversion mode control
     13 #define ST7735_SET_DISPLAY_CTL 0xB6      // Set display control 5
     14 #define ST7735_SET_POWER_CTL_1 0xC0      // Set GVDD
     15 #define ST7735_SET_POWER_CTL_2 0xC1      // Set VGH and VGL
     16 #define ST7735_SET_POWER_CTL_3 0xC2      // Set normal mode op amp current
     17 #define ST7735_SET_POWER_CTL_4 0xC3      // Set idle mode op amp current
     18 #define ST7735_SET_POWER_CTL_5 0xC4      // Set partial mode op amp current
     19 #define ST7735_SET_VCOM_CTL 0xC5         // Set VCOM voltages
     20 #define ST7735_SET_VCOM_OFFSET_CTL 0xC7  // Set VCOM offset ctl
     21 #define ST7735_SET_LCD_ID 0xD1           // Set LCD module version
     22 #define ST7735_SET_PROJECT_ID 0xD2       // Set product project ID
     23 #define ST7735_SET_POWER_CTL_6 0xFC      // Set partial+idle op amp current
     24 #define ST7735_SET_NVMEM_CTL_STATUS 0xD9 // EEPROM Control Status
     25 #define ST7735_SET_NVMEM_READ_CMD 0xCC   // EEPROM Read Command
     26 #define ST7735_SET_NVMEM_WRITE_CMD 0xDF  // EEPROM Write Command
     27 #define ST7735_SET_PGAMMA 0xE0           // Set positive gamma
     28 #define ST7735_SET_NGAMMA 0xE1           // Set negative gamma
     29 #define ST7735_SET_EXTENSION_ENABLE 0xF0 // Enable extension command
     30 #define ST7735_SET_VCOM_DELAY 0xFF       // Set VCOM delay time