mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-20 07:25:06 +00:00
Fix display and touch driver
This commit is contained in:
parent
6a97ed15c6
commit
939aebfcc3
@ -15,47 +15,71 @@ static DeviceVector createDevices() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool initBoot() {
|
static bool initBoot() {
|
||||||
// From https://github.com/m5stack/M5GFX/blob/03565ccc96cb0b73c8b157f5ec3fbde439b034ad/src/M5GFX.cpp
|
/*
|
||||||
|
PI4IOE5V6408-1 (0x43)
|
||||||
|
- Bit 0: RF internal/external switch
|
||||||
|
- Bit 1: Speaker enable
|
||||||
|
- Bit 2: External 5V bus enable
|
||||||
|
- Bit 3: /
|
||||||
|
- Bit 4: LCD reset
|
||||||
|
- Bit 5: Touch reset
|
||||||
|
- Bit 6: Camera reset
|
||||||
|
- Bit 7: Headphone detect
|
||||||
|
|
||||||
|
PI4IOE5V6408-2 (0x44)
|
||||||
|
- Bit 0: C6 WLAN enable
|
||||||
|
- Bit 1: /
|
||||||
|
- Bit 2: /
|
||||||
|
- Bit 3: USB-A 5V enable
|
||||||
|
- Bit 4: Device power: PWROFF_PLUSE
|
||||||
|
- Bit 5: IP2326: nCHG_QC_EN
|
||||||
|
- Bit 6: IP2326: CHG_STAT_LED
|
||||||
|
- Bit 7: IP2326: CHG_EN
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Init byte arrays adapted from https://github.com/m5stack/M5GFX/blob/03565ccc96cb0b73c8b157f5ec3fbde439b034ad/src/M5GFX.cpp
|
||||||
static constexpr uint8_t reg_data_io1_1[] = {
|
static constexpr uint8_t reg_data_io1_1[] = {
|
||||||
0x03, 0b01111111, 0, // PI4IO_REG_IO_DIR
|
0x03, 0b01111111, // PI4IO_REG_IO_DIR
|
||||||
0x05, 0b01000110, 0, // PI4IO_REG_OUT_SET (bit4=LCD Reset,bit5=GT911 TouchReset LOW)
|
0x05, 0b01000110, // PI4IO_REG_OUT_SET (bit4=LCD Reset, bit5=GT911 TouchReset -> LOW)
|
||||||
0x07, 0b00000000, 0, // PI4IO_REG_OUT_H_IM
|
0x07, 0b00000000, // PI4IO_REG_OUT_H_IM
|
||||||
0x0D, 0b01111111, 0, // PI4IO_REG_PULL_SEL
|
0x0D, 0b01111111, // PI4IO_REG_PULL_SEL
|
||||||
0x0B, 0b01111111, 0, // PI4IO_REG_PULL_EN
|
0x0B, 0b01111111, // PI4IO_REG_PULL_EN
|
||||||
0xFF,0xFF,0xFF,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// From https://github.com/m5stack/M5GFX/blob/03565ccc96cb0b73c8b157f5ec3fbde439b034ad/src/M5GFX.cpp
|
|
||||||
static constexpr uint8_t reg_data_io1_2[] = {
|
static constexpr uint8_t reg_data_io1_2[] = {
|
||||||
0x05, 0b01110110, 0, // PI4IO_REG_OUT_SET (bit4=LCD Reset,bit5=GT911 TouchReset HIGH)
|
0x05, 0b01110110, // PI4IO_REG_OUT_SET (bit4=LCD Reset, bit5=GT911 TouchReset -> HIGH)
|
||||||
0xFF,0xFF,0xFF,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// From https://github.com/m5stack/M5GFX/blob/03565ccc96cb0b73c8b157f5ec3fbde439b034ad/src/M5GFX.cpp
|
|
||||||
static constexpr uint8_t reg_data_io2[] = {
|
static constexpr uint8_t reg_data_io2[] = {
|
||||||
0x03, 0b10111001, 0, // PI4IO_REG_IO_DIR
|
0x03, 0b10111001, // PI4IO_REG_IO_DIR
|
||||||
0x07, 0b00000110, 0, // PI4IO_REG_OUT_H_IM
|
0x07, 0b00000110, // PI4IO_REG_OUT_H_IM
|
||||||
0x0D, 0b10111001, 0, // PI4IO_REG_PULL_SEL
|
0x0D, 0b10111001, // PI4IO_REG_PULL_SEL
|
||||||
0x0B, 0b11111001, 0, // PI4IO_REG_PULL_EN
|
0x0B, 0b11111001, // PI4IO_REG_PULL_EN
|
||||||
0x09, 0b01000000, 0, // PI4IO_REG_IN_DEF_STA
|
0x09, 0b01000000, // PI4IO_REG_IN_DEF_STA
|
||||||
0x11, 0b10111111, 0, // PI4IO_REG_INT_MASK
|
0x11, 0b10111111, // PI4IO_REG_INT_MASK
|
||||||
0x05, 0b10001001, 0, // PI4IO_REG_OUT_SET
|
0x05, 0b10001001, // PI4IO_REG_OUT_SET (enable WiFi, USB-A 5V and CHG_EN)
|
||||||
0xFF,0xFF,0xFF,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// constexpr auto pi4io1_i2c_addr = 0x43;
|
constexpr auto IO_EXPANDER1_ADDRESS = 0x43;
|
||||||
// if (i2c::masterWrite(I2C_NUM_0, pi4io1_i2c_addr, reg_data_io1_1, sizeof(reg_data_io1_1))) {
|
if (!i2c::masterWriteRegisterArray(I2C_NUM_0, IO_EXPANDER1_ADDRESS, reg_data_io1_1, sizeof(reg_data_io1_1))) {
|
||||||
// LOGGER.error("I2C init of PI4IO1 failed");
|
LOGGER.error("IO expander 1 init failed in phase 1");
|
||||||
// }
|
return false;
|
||||||
//
|
}
|
||||||
// if (i2c::masterWrite(I2C_NUM_0, pi4io1_i2c_addr, reg_data_io2, sizeof(reg_data_io2))) {
|
|
||||||
// LOGGER.error("I2C init of PI4IO1 failed");
|
constexpr auto IO_EXPANDER2_ADDRESS = 0x44;
|
||||||
// }
|
if (!i2c::masterWriteRegisterArray(I2C_NUM_0, IO_EXPANDER2_ADDRESS, reg_data_io2, sizeof(reg_data_io2))) {
|
||||||
//
|
LOGGER.error("IO expander 1 init failed in phase 2");
|
||||||
// tt::kernel::delayTicks(10);
|
return false;
|
||||||
// if (i2c::masterWrite(I2C_NUM_0, pi4io1_i2c_addr, reg_data_io1_2, sizeof(reg_data_io1_2))) {
|
}
|
||||||
// LOGGER.error("I2C init of PI4IO1 failed");
|
|
||||||
// }
|
// The M5Stack code applies this, but it's not known why
|
||||||
|
// TODO: Remove and test it extensively
|
||||||
|
tt::kernel::delayTicks(10);
|
||||||
|
|
||||||
|
if (!i2c::masterWriteRegisterArray(I2C_NUM_0, IO_EXPANDER1_ADDRESS, reg_data_io1_2, sizeof(reg_data_io1_2))) {
|
||||||
|
LOGGER.error("IO expander 2 init failed");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -81,22 +105,22 @@ extern const Configuration hardwareConfiguration = {
|
|||||||
.clk_flags = 0
|
.clk_flags = 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// i2c::Configuration {
|
i2c::Configuration {
|
||||||
// .name = "Port A",
|
.name = "Port A",
|
||||||
// .port = I2C_NUM_1,
|
.port = I2C_NUM_1,
|
||||||
// .initMode = i2c::InitMode::ByTactility,
|
.initMode = i2c::InitMode::ByTactility,
|
||||||
// .isMutable = false,
|
.isMutable = false,
|
||||||
// .config = (i2c_config_t) {
|
.config = (i2c_config_t) {
|
||||||
// .mode = I2C_MODE_MASTER,
|
.mode = I2C_MODE_MASTER,
|
||||||
// .sda_io_num = GPIO_NUM_53,
|
.sda_io_num = GPIO_NUM_53,
|
||||||
// .scl_io_num = GPIO_NUM_54,
|
.scl_io_num = GPIO_NUM_54,
|
||||||
// .sda_pullup_en = true,
|
.sda_pullup_en = true,
|
||||||
// .scl_pullup_en = true,
|
.scl_pullup_en = true,
|
||||||
// .master = {
|
.master = {
|
||||||
// .clk_speed = 400000
|
.clk_speed = 400000
|
||||||
// },
|
},
|
||||||
// .clk_flags = 0
|
.clk_flags = 0
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
#include <PwmBacklight.h>
|
#include <PwmBacklight.h>
|
||||||
#include <Tactility/Logger.h>
|
#include <Tactility/Logger.h>
|
||||||
#include <Tactility/Mutex.h>
|
#include <Tactility/Mutex.h>
|
||||||
|
#include <Tactility/hal/gpio/Gpio.h>
|
||||||
|
|
||||||
constexpr auto LCD_PIN_RESET = GPIO_NUM_0; // Match P4 EV board reset line
|
constexpr auto LCD_PIN_RESET = GPIO_NUM_0; // Match P4 EV board reset line
|
||||||
constexpr auto LCD_PIN_BACKLIGHT = GPIO_NUM_22;
|
constexpr auto LCD_PIN_BACKLIGHT = GPIO_NUM_22;
|
||||||
@ -12,13 +13,13 @@ constexpr auto LCD_PIN_BACKLIGHT = GPIO_NUM_22;
|
|||||||
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
|
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
|
||||||
auto configuration = std::make_unique<Gt911Touch::Configuration>(
|
auto configuration = std::make_unique<Gt911Touch::Configuration>(
|
||||||
I2C_NUM_0,
|
I2C_NUM_0,
|
||||||
273,
|
720,
|
||||||
1280,
|
1280,
|
||||||
false, // swapXY
|
false, // swapXY
|
||||||
false, // mirrorX
|
false, // mirrorX
|
||||||
false, // mirrorY
|
false, // mirrorY
|
||||||
GPIO_NUM_NC, // reset pin
|
GPIO_NUM_NC, // reset pin
|
||||||
GPIO_NUM_23 // interrupt pin
|
GPIO_NUM_NC // "GPIO_NUM_23 cannot be used due to resistor to 3V3" https://github.com/espressif/esp-bsp/blob/ad668c765cbad177495a122181df0a70ff9f8f61/bsp/m5stack_tab5/src/m5stack_tab5.c#L76234
|
||||||
);
|
);
|
||||||
|
|
||||||
return std::make_shared<Gt911Touch>(std::move(configuration));
|
return std::make_shared<Gt911Touch>(std::move(configuration));
|
||||||
@ -26,12 +27,18 @@ static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
|
|||||||
|
|
||||||
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
|
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
|
||||||
// Initialize PWM backlight
|
// Initialize PWM backlight
|
||||||
if (!driver::pwmbacklight::init(LCD_PIN_BACKLIGHT, 20000, LEDC_TIMER_1, LEDC_CHANNEL_0)) {
|
if (!driver::pwmbacklight::init(LCD_PIN_BACKLIGHT, 5000, LEDC_TIMER_1, LEDC_CHANNEL_0)) {
|
||||||
tt::Logger("Tab5").warn("Failed to initialize backlight");
|
tt::Logger("Tab5").warn("Failed to initialize backlight");
|
||||||
}
|
}
|
||||||
|
|
||||||
auto touch = createTouch();
|
auto touch = createTouch();
|
||||||
|
|
||||||
|
// Work-around to init touch : interrupt pin must be set to low
|
||||||
|
// Note: There is a resistor to 3V3 on interrupt pin which is blocking GT911 touch
|
||||||
|
// See https://github.com/espressif/esp-bsp/blob/ad668c765cbad177495a122181df0a70ff9f8f61/bsp/m5stack_tab5/src/m5stack_tab5.c#L777
|
||||||
|
tt::hal::gpio::configure(23, tt::hal::gpio::Mode::Output, true, false);
|
||||||
|
tt::hal::gpio::setLevel(23, false);
|
||||||
|
|
||||||
auto configuration = std::make_shared<EspLcdConfiguration>(EspLcdConfiguration {
|
auto configuration = std::make_shared<EspLcdConfiguration>(EspLcdConfiguration {
|
||||||
.horizontalResolution = 720,
|
.horizontalResolution = 720,
|
||||||
.verticalResolution = 1280,
|
.verticalResolution = 1280,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#include "Ili9881cDisplay.h"
|
#include "Ili9881cDisplay.h"
|
||||||
|
#include "disp_init_data.h"
|
||||||
|
|
||||||
#include <Tactility/Logger.h>
|
#include <Tactility/Logger.h>
|
||||||
|
|
||||||
#include <esp_lcd_ili9881c.h>
|
#include <esp_lcd_ili9881c.h>
|
||||||
|
|
||||||
static const auto LOGGER = tt::Logger("ILI9881C");
|
static const auto LOGGER = tt::Logger("ILI9881C");
|
||||||
@ -42,7 +42,7 @@ bool Ili9881cDisplay::createMipiDsiBus() {
|
|||||||
.bus_id = 0,
|
.bus_id = 0,
|
||||||
.num_data_lanes = 2,
|
.num_data_lanes = 2,
|
||||||
.phy_clk_src = MIPI_DSI_PHY_CLK_SRC_DEFAULT,
|
.phy_clk_src = MIPI_DSI_PHY_CLK_SRC_DEFAULT,
|
||||||
.lane_bit_rate_mbps = 960
|
.lane_bit_rate_mbps = 1000
|
||||||
};
|
};
|
||||||
|
|
||||||
if (esp_lcd_new_dsi_bus(&bus_config, &mipiDsiBus) != ESP_OK) {
|
if (esp_lcd_new_dsi_bus(&bus_config, &mipiDsiBus) != ESP_OK) {
|
||||||
@ -87,18 +87,17 @@ esp_lcd_panel_dev_config_t Ili9881cDisplay::createPanelConfig(std::shared_ptr<Es
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Ili9881cDisplay::createPanelHandle(esp_lcd_panel_io_handle_t ioHandle, const esp_lcd_panel_dev_config_t& panelConfig, esp_lcd_panel_handle_t& panelHandle) {
|
bool Ili9881cDisplay::createPanelHandle(esp_lcd_panel_io_handle_t ioHandle, const esp_lcd_panel_dev_config_t& panelConfig, esp_lcd_panel_handle_t& panelHandle) {
|
||||||
// Create DPI panel configuration
|
// Based on BSP: https://github.com/espressif/esp-bsp/blob/master/bsp/m5stack_tab5/README.md
|
||||||
// Override default timings
|
|
||||||
// TODO: Use ILI9881C_800_1280_PANEL_60HZ_DPI_CONFIG() when ILI9881C library is updated
|
|
||||||
static const esp_lcd_dpi_panel_config_t dpi_config = {
|
static const esp_lcd_dpi_panel_config_t dpi_config = {
|
||||||
.virtual_channel = 0,
|
.virtual_channel = 0,
|
||||||
.dpi_clk_src = MIPI_DSI_DPI_CLK_SRC_DEFAULT,
|
.dpi_clk_src = MIPI_DSI_DPI_CLK_SRC_DEFAULT,
|
||||||
.dpi_clock_freq_mhz = 80,
|
.dpi_clock_freq_mhz = 60,
|
||||||
.pixel_format = LCD_COLOR_PIXEL_FORMAT_RGB565,
|
.pixel_format = LCD_COLOR_PIXEL_FORMAT_RGB565,
|
||||||
.in_color_format = LCD_COLOR_FMT_RGB565,
|
.in_color_format = LCD_COLOR_FMT_RGB565,
|
||||||
.out_color_format = LCD_COLOR_FMT_RGB565,
|
.out_color_format = LCD_COLOR_FMT_RGB565,
|
||||||
.num_fbs = 1,
|
.num_fbs = 1, // TODO: 2?
|
||||||
.video_timing = {
|
.video_timing =
|
||||||
|
{
|
||||||
.h_size = 720,
|
.h_size = 720,
|
||||||
.v_size = 1280,
|
.v_size = 1280,
|
||||||
.hsync_pulse_width = 40,
|
.hsync_pulse_width = 40,
|
||||||
@ -108,19 +107,19 @@ bool Ili9881cDisplay::createPanelHandle(esp_lcd_panel_io_handle_t ioHandle, cons
|
|||||||
.vsync_back_porch = 20,
|
.vsync_back_porch = 20,
|
||||||
.vsync_front_porch = 20,
|
.vsync_front_porch = 20,
|
||||||
},
|
},
|
||||||
.flags = {
|
.flags {
|
||||||
.use_dma2d = 1,
|
.use_dma2d = 1, // TODO: true?
|
||||||
.disable_lp = 0
|
.disable_lp = 0,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ili9881c_vendor_config_t vendor_config = {
|
ili9881c_vendor_config_t vendor_config = {
|
||||||
.init_cmds = nullptr,
|
.init_cmds = disp_init_data,
|
||||||
.init_cmds_size = 0,
|
.init_cmds_size = std::size(disp_init_data),
|
||||||
.mipi_config = {
|
.mipi_config = {
|
||||||
.dsi_bus = mipiDsiBus,
|
.dsi_bus = mipiDsiBus,
|
||||||
.dpi_config = &dpi_config,
|
.dpi_config = &dpi_config,
|
||||||
.lane_num = 2
|
.lane_num = 2,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
435
Devices/m5stack-tab5/Source/devices/disp_init_data.h
Normal file
435
Devices/m5stack-tab5/Source/devices/disp_init_data.h
Normal file
@ -0,0 +1,435 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
#include <esp_lcd_ili9881c.h>
|
||||||
|
|
||||||
|
static const ili9881c_lcd_init_cmd_t disp_init_data[] = {
|
||||||
|
// {cmd, { data }, data_size, delay}
|
||||||
|
|
||||||
|
/**** CMD_Page 1 ****/
|
||||||
|
|
||||||
|
{0xFF, (uint8_t[]){0x98, 0x81, 0x01}, 3, 0},
|
||||||
|
|
||||||
|
{0xB7, (uint8_t[]){0x03}, 1, 0}, // set 2 lane
|
||||||
|
|
||||||
|
/**** CMD_Page 3 ****/
|
||||||
|
|
||||||
|
{0xFF, (uint8_t[]){0x98, 0x81, 0x03}, 3, 0},
|
||||||
|
|
||||||
|
{0x01, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x02, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x03, (uint8_t[]){0x73}, 1, 0},
|
||||||
|
|
||||||
|
{0x04, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x05, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x06, (uint8_t[]){0x08}, 1, 0},
|
||||||
|
|
||||||
|
{0x07, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x08, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x09, (uint8_t[]){0x1B}, 1, 0},
|
||||||
|
|
||||||
|
{0x0a, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x0b, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x0c, (uint8_t[]){0x0D}, 1, 0},
|
||||||
|
|
||||||
|
{0x0d, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x0e, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x0f, (uint8_t[]){0x26}, 1, 0},
|
||||||
|
|
||||||
|
{0x10, (uint8_t[]){0x26}, 1, 0},
|
||||||
|
|
||||||
|
{0x11, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x12, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x13, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x14, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x15, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x16, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x17, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x18, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x19, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x1a, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x1b, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x1c, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x1d, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x1e, (uint8_t[]){0x40}, 1, 0},
|
||||||
|
|
||||||
|
{0x1f, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x20, (uint8_t[]){0x06}, 1, 0},
|
||||||
|
|
||||||
|
{0x21, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x22, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x23, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x24, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x25, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x26, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x27, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x28, (uint8_t[]){0x33}, 1, 0},
|
||||||
|
|
||||||
|
{0x29, (uint8_t[]){0x03}, 1, 0},
|
||||||
|
|
||||||
|
{0x2a, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x2b, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x2c, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x2d, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x2e, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x2f, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x30, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x31, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x32, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x33, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x34, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x35, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x36, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x37, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x38, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x39, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x3a, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x3b, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x3c, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x3d, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x3e, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x3f, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x40, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x41, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x42, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x43, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x44, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{0x50, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x51, (uint8_t[]){0x23}, 1, 0},
|
||||||
|
|
||||||
|
{0x52, (uint8_t[]){0x45}, 1, 0},
|
||||||
|
|
||||||
|
{0x53, (uint8_t[]){0x67}, 1, 0},
|
||||||
|
|
||||||
|
{0x54, (uint8_t[]){0x89}, 1, 0},
|
||||||
|
|
||||||
|
{0x55, (uint8_t[]){0xab}, 1, 0},
|
||||||
|
|
||||||
|
{0x56, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x57, (uint8_t[]){0x23}, 1, 0},
|
||||||
|
|
||||||
|
{0x58, (uint8_t[]){0x45}, 1, 0},
|
||||||
|
|
||||||
|
{0x59, (uint8_t[]){0x67}, 1, 0},
|
||||||
|
|
||||||
|
{0x5a, (uint8_t[]){0x89}, 1, 0},
|
||||||
|
|
||||||
|
{0x5b, (uint8_t[]){0xab}, 1, 0},
|
||||||
|
|
||||||
|
{0x5c, (uint8_t[]){0xcd}, 1, 0},
|
||||||
|
|
||||||
|
{0x5d, (uint8_t[]){0xef}, 1, 0},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{0x5e, (uint8_t[]){0x11}, 1, 0},
|
||||||
|
|
||||||
|
{0x5f, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x60, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x61, (uint8_t[]){0x07}, 1, 0},
|
||||||
|
|
||||||
|
{0x62, (uint8_t[]){0x06}, 1, 0},
|
||||||
|
|
||||||
|
{0x63, (uint8_t[]){0x0E}, 1, 0},
|
||||||
|
|
||||||
|
{0x64, (uint8_t[]){0x0F}, 1, 0},
|
||||||
|
|
||||||
|
{0x65, (uint8_t[]){0x0C}, 1, 0},
|
||||||
|
|
||||||
|
{0x66, (uint8_t[]){0x0D}, 1, 0},
|
||||||
|
|
||||||
|
{0x67, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x68, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x69, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x6a, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x6b, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x6c, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x6d, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x6e, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x6f, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x70, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x71, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x72, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x73, (uint8_t[]){0x05}, 1, 0},
|
||||||
|
|
||||||
|
{0x74, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x75, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x76, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x77, (uint8_t[]){0x07}, 1, 0},
|
||||||
|
|
||||||
|
{0x78, (uint8_t[]){0x06}, 1, 0},
|
||||||
|
|
||||||
|
{0x79, (uint8_t[]){0x0E}, 1, 0},
|
||||||
|
|
||||||
|
{0x7a, (uint8_t[]){0x0F}, 1, 0},
|
||||||
|
|
||||||
|
{0x7b, (uint8_t[]){0x0C}, 1, 0},
|
||||||
|
|
||||||
|
{0x7c, (uint8_t[]){0x0D}, 1, 0},
|
||||||
|
|
||||||
|
{0x7d, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x7e, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x7f, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x80, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x81, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x82, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x83, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x84, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x85, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x86, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x87, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x88, (uint8_t[]){0x02}, 1, 0},
|
||||||
|
|
||||||
|
{0x89, (uint8_t[]){0x05}, 1, 0},
|
||||||
|
|
||||||
|
{0x8A, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**** CMD_Page 4 ****/
|
||||||
|
|
||||||
|
{0xFF, (uint8_t[]){0x98, 0x81, 0x04}, 3, 0},
|
||||||
|
|
||||||
|
{0x38, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x39, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x6C, (uint8_t[]){0x15}, 1, 0},
|
||||||
|
|
||||||
|
{0x6E, (uint8_t[]){0x1A}, 1, 0},
|
||||||
|
|
||||||
|
{0x6F, (uint8_t[]){0x25}, 1, 0},
|
||||||
|
|
||||||
|
{0x3A, (uint8_t[]){0xA4}, 1, 0},
|
||||||
|
|
||||||
|
{0x8D, (uint8_t[]){0x20}, 1, 0},
|
||||||
|
|
||||||
|
{0x87, (uint8_t[]){0xBA}, 1, 0},
|
||||||
|
|
||||||
|
{0x3B, (uint8_t[]){0x98}, 1, 0},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**** CMD_Page 1 ****/
|
||||||
|
|
||||||
|
{0xFF, (uint8_t[]){0x98, 0x81, 0x01}, 3, 0},
|
||||||
|
|
||||||
|
{0x22, (uint8_t[]){0x0A}, 1, 0},
|
||||||
|
|
||||||
|
{0x31, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0x50, (uint8_t[]){0x6B}, 1, 0},
|
||||||
|
|
||||||
|
{0x51, (uint8_t[]){0x66}, 1, 0},
|
||||||
|
|
||||||
|
{0x53, (uint8_t[]){0x73}, 1, 0},
|
||||||
|
|
||||||
|
{0x55, (uint8_t[]){0x8B}, 1, 0},
|
||||||
|
|
||||||
|
{0x60, (uint8_t[]){0x1B}, 1, 0},
|
||||||
|
|
||||||
|
{0x61, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0x62, (uint8_t[]){0x0C}, 1, 0},
|
||||||
|
|
||||||
|
{0x63, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Gamma P
|
||||||
|
|
||||||
|
{0xA0, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0xA1, (uint8_t[]){0x15}, 1, 0},
|
||||||
|
|
||||||
|
{0xA2, (uint8_t[]){0x1F}, 1, 0},
|
||||||
|
|
||||||
|
{0xA3, (uint8_t[]){0x13}, 1, 0},
|
||||||
|
|
||||||
|
{0xA4, (uint8_t[]){0x11}, 1, 0},
|
||||||
|
|
||||||
|
{0xA5, (uint8_t[]){0x21}, 1, 0},
|
||||||
|
|
||||||
|
{0xA6, (uint8_t[]){0x17}, 1, 0},
|
||||||
|
|
||||||
|
{0xA7, (uint8_t[]){0x1B}, 1, 0},
|
||||||
|
|
||||||
|
{0xA8, (uint8_t[]){0x6B}, 1, 0},
|
||||||
|
|
||||||
|
{0xA9, (uint8_t[]){0x1E}, 1, 0},
|
||||||
|
|
||||||
|
{0xAA, (uint8_t[]){0x2B}, 1, 0},
|
||||||
|
|
||||||
|
{0xAB, (uint8_t[]){0x5D}, 1, 0},
|
||||||
|
|
||||||
|
{0xAC, (uint8_t[]){0x19}, 1, 0},
|
||||||
|
|
||||||
|
{0xAD, (uint8_t[]){0x14}, 1, 0},
|
||||||
|
|
||||||
|
{0xAE, (uint8_t[]){0x4B}, 1, 0},
|
||||||
|
|
||||||
|
{0xAF, (uint8_t[]){0x1D}, 1, 0},
|
||||||
|
|
||||||
|
{0xB0, (uint8_t[]){0x27}, 1, 0},
|
||||||
|
|
||||||
|
{0xB1, (uint8_t[]){0x49}, 1, 0},
|
||||||
|
|
||||||
|
{0xB2, (uint8_t[]){0x5D}, 1, 0},
|
||||||
|
|
||||||
|
{0xB3, (uint8_t[]){0x39}, 1, 0},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Gamma N
|
||||||
|
|
||||||
|
{0xC0, (uint8_t[]){0x00}, 1, 0},
|
||||||
|
|
||||||
|
{0xC1, (uint8_t[]){0x01}, 1, 0},
|
||||||
|
|
||||||
|
{0xC2, (uint8_t[]){0x0C}, 1, 0},
|
||||||
|
|
||||||
|
{0xC3, (uint8_t[]){0x11}, 1, 0},
|
||||||
|
|
||||||
|
{0xC4, (uint8_t[]){0x15}, 1, 0},
|
||||||
|
|
||||||
|
{0xC5, (uint8_t[]){0x28}, 1, 0},
|
||||||
|
|
||||||
|
{0xC6, (uint8_t[]){0x1B}, 1, 0},
|
||||||
|
|
||||||
|
{0xC7, (uint8_t[]){0x1C}, 1, 0},
|
||||||
|
|
||||||
|
{0xC8, (uint8_t[]){0x62}, 1, 0},
|
||||||
|
|
||||||
|
{0xC9, (uint8_t[]){0x1C}, 1, 0},
|
||||||
|
|
||||||
|
{0xCA, (uint8_t[]){0x29}, 1, 0},
|
||||||
|
|
||||||
|
{0xCB, (uint8_t[]){0x60}, 1, 0},
|
||||||
|
|
||||||
|
{0xCC, (uint8_t[]){0x16}, 1, 0},
|
||||||
|
|
||||||
|
{0xCD, (uint8_t[]){0x17}, 1, 0},
|
||||||
|
|
||||||
|
{0xCE, (uint8_t[]){0x4A}, 1, 0},
|
||||||
|
|
||||||
|
{0xCF, (uint8_t[]){0x23}, 1, 0},
|
||||||
|
|
||||||
|
{0xD0, (uint8_t[]){0x24}, 1, 0},
|
||||||
|
|
||||||
|
{0xD1, (uint8_t[]){0x4F}, 1, 0},
|
||||||
|
|
||||||
|
{0xD2, (uint8_t[]){0x5F}, 1, 0},
|
||||||
|
|
||||||
|
{0xD3, (uint8_t[]){0x39}, 1, 0},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**** CMD_Page 0 ****/
|
||||||
|
|
||||||
|
{0xFF, (uint8_t[]){0x98, 0x81, 0x00}, 3, 0},
|
||||||
|
|
||||||
|
{0x35, (uint8_t[]){0x00}, 0, 0},
|
||||||
|
|
||||||
|
// {0x11, (uint8_t []){0x00}, 0},
|
||||||
|
|
||||||
|
{0xFE, (uint8_t[]){0x00}, 0, 0},
|
||||||
|
|
||||||
|
{0x29, (uint8_t[]){0x00}, 0, 0},
|
||||||
|
|
||||||
|
//============ Gamma END===========
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user