 |
 |
Go to the documentation of this file. 48 #define USE_LS013B7DH03 1 53 #define LV_DRV_DELAY_INCLUDE <unistd.h> 54 #define LV_DRV_DELAY_US(us) usleep(us) 55 #define LV_DRV_DELAY_MS(ms) usleep(1000*ms) 64 #define LV_DRV_DISP_INCLUDE <ti_lvgl_disp_interface.h> 65 #define LV_DRV_DISP_CMD_DATA(val) 66 #define LV_DRV_DISP_RST(val) 67 #define LV_DRV_DISP_POWER(val) GPIO_write(Board_GPIO_SHARP_LCD_POWER, val) 68 #define LV_DRV_DISP_ENABLE(val) GPIO_write(Board_GPIO_SHARP_LCD_ENABLE, val) 73 #define LV_DRV_DISP_SPI_BITRATE 1000000 74 #define LV_DRV_DISP_SPI_CS(val) GPIO_write(Board_GPIO_SHARP_LCD_CS, val); 75 #define LV_DRV_DISP_SPI_WR_BYTE(data) spi_wr_byte(data) 76 #define LV_DRV_DISP_SPI_WR_ARRAY(adr, n) spi_wr_array(adr, n) 81 #define LV_DRV_DISP_PAR_CS(val) 82 #define LV_DRV_DISP_PAR_SLOW 83 #define LV_DRV_DISP_PAR_FAST 84 #define LV_DRV_DISP_PAR_WR_WORD(data) 85 #define LV_DRV_DISP_PAR_WR_ARRAY(adr, n) 94 #define LV_DRV_INDEV_INCLUDE <stdint.h> 95 #define LV_DRV_INDEV_RST(val) 96 #define LV_DRV_INDEV_IRQ_READ 0 101 #define LV_DRV_INDEV_SPI_CS(val) 102 #define LV_DRV_INDEV_SPI_XCHG_BYTE(data) 0 107 #define LV_DRV_INDEV_I2C_START 108 #define LV_DRV_INDEV_I2C_STOP 109 #define LV_DRV_INDEV_I2C_RESTART 110 #define LV_DRV_INDEV_I2C_WR(data) 111 #define LV_DRV_INDEV_I2C_READ(last_read) 0 121 # define USE_MONITOR 0 125 # define MONITOR_HOR_RES LV_HOR_RES 126 # define MONITOR_VER_RES LV_VER_RES 129 # define MONITOR_ZOOM 1 133 # define MONITOR_DOUBLE_BUFFERED 0 136 # define MONITOR_SDL_INCLUDE_PATH <SDL2/SDL.h> 139 # define MONITOR_VIRTUAL_MACHINE 0 146 # define USE_WINDOWS 0 149 #define USE_WINDOWS 0 151 # define WINDOW_HOR_RES LV_HOR_RES 152 # define WINDOW_VER_RES LV_VER_RES 158 #ifndef USE_LS013B7DH03 159 # define USE_LS013B7DH03 0 163 #define SHARP_SEND_TOGGLE_VCOM_COMMAND 0x01 164 #define SHARP_SKIP_TOGGLE_VCOM_COMMAND 0x00 166 #define SHARP_LCD_TRAILER_BYTE 0x00 168 #define SHARP_VCOM_TOGGLE_BIT 0x40 170 #define SHARP_LCD_CMD_CHANGE_VCOM 0x00 171 #define SHARP_LCD_CMD_CLEAR_SCREEN 0x20 172 #define SHARP_LCD_CMD_WRITE_LINE 0x80 179 # define USE_SSD2119 0 184 #if ! defined(PORTRAIT) && ! defined(PORTRAIT_FLIP) && \ 185 ! defined(LANDSCAPE) && ! defined(LANDSCAPE_FLIP) 190 #define HORIZ_DIRECTION 0x28 191 #define VERT_DIRECTION 0x20 192 #define MAPPED_X(x, y) (LV_HOR_RES - 1 - (y)) 193 #define MAPPED_Y(x, y) (x) 196 #define HORIZ_DIRECTION 0x00 197 #define VERT_DIRECTION 0x08 198 #define MAPPED_X(x, y) (LV_HOR_RES - 1 - (x)) 199 #define MAPPED_Y(x, y) (LV_VER_RES - 1 - (y)) 202 #define HORIZ_DIRECTION 0x18 203 #define VERT_DIRECTION 0x10 204 #define MAPPED_X(x, y) (y) 205 #define MAPPED_Y(x, y) (LV_VER_RES - 1 - (x)) 207 #ifdef LANDSCAPE_FLIP 208 #define HORIZ_DIRECTION 0x30 209 #define VERT_DIRECTION 0x38 210 #define MAPPED_X(x, y) (x) 211 #define MAPPED_Y(x, y) (y) 215 #define SSD2119_DEVICE_CODE_READ_REG 0x00 216 #define SSD2119_OSC_START_REG 0x00 217 #define SSD2119_OUTPUT_CTRL_REG 0x01 218 #define SSD2119_LCD_DRIVE_AC_CTRL_REG 0x02 219 #define SSD2119_PWR_CTRL_1_REG 0x03 220 #define SSD2119_DISPLAY_CTRL_REG 0x07 221 #define SSD2119_FRAME_CYCLE_CTRL_REG 0x0B 222 #define SSD2119_PWR_CTRL_2_REG 0x0C 223 #define SSD2119_PWR_CTRL_3_REG 0x0D 224 #define SSD2119_PWR_CTRL_4_REG 0x0E 225 #define SSD2119_GATE_SCAN_START_REG 0x0F 226 #define SSD2119_SLEEP_MODE_1_REG 0x10 227 #define SSD2119_ENTRY_MODE_REG 0x11 228 #define SSD2119_SLEEP_MODE_2_REG 0x12 229 #define SSD2119_GEN_IF_CTRL_REG 0x15 230 #define SSD2119_PWR_CTRL_5_REG 0x1E 231 #define SSD2119_RAM_DATA_REG 0x22 232 #define SSD2119_FRAME_FREQ_REG 0x25 233 #define SSD2119_ANALOG_SET_REG 0x26 234 #define SSD2119_VCOM_OTP_1_REG 0x28 235 #define SSD2119_VCOM_OTP_2_REG 0x29 236 #define SSD2119_GAMMA_CTRL_1_REG 0x30 237 #define SSD2119_GAMMA_CTRL_2_REG 0x31 238 #define SSD2119_GAMMA_CTRL_3_REG 0x32 239 #define SSD2119_GAMMA_CTRL_4_REG 0x33 240 #define SSD2119_GAMMA_CTRL_5_REG 0x34 241 #define SSD2119_GAMMA_CTRL_6_REG 0x35 242 #define SSD2119_GAMMA_CTRL_7_REG 0x36 243 #define SSD2119_GAMMA_CTRL_8_REG 0x37 244 #define SSD2119_GAMMA_CTRL_9_REG 0x3A 245 #define SSD2119_GAMMA_CTRL_10_REG 0x3B 246 #define SSD2119_V_RAM_POS_REG 0x44 247 #define SSD2119_H_RAM_START_REG 0x45 248 #define SSD2119_H_RAM_END_REG 0x46 249 #define SSD2119_X_RAM_ADDR_REG 0x4E 250 #define SSD2119_Y_RAM_ADDR_REG 0x4F 252 #define ENTRY_MODE_DEFAULT 0x6830 253 #define MAKE_ENTRY_MODE(x) ((ENTRY_MODE_DEFAULT & 0xFF00) | (x)) 255 #define SSD2119_CMD_MODE 0 256 #define SSD2119_DATA_MODE 1 263 # define USE_SSD1963 0 267 # define SSD1963_HOR_RES LV_HOR_RES 268 # define SSD1963_VER_RES LV_VER_RES 269 # define SSD1963_HT 531 270 # define SSD1963_HPS 43 271 # define SSD1963_LPS 8 272 # define SSD1963_HPW 10 273 # define SSD1963_VT 288 274 # define SSD1963_VPS 12 275 # define SSD1963_FPS 4 276 # define SSD1963_VPW 10 277 # define SSD1963_HS_NEG 0 278 # define SSD1963_VS_NEG 0 279 # define SSD1963_ORI 0 280 # define SSD1963_COLOR_DEPTH 16 287 # define USE_R61581 0 291 # define R61581_HOR_RES LV_HOR_RES 292 # define R61581_VER_RES LV_VER_RES 293 # define R61581_HSPL 0 294 # define R61581_HSL 10 295 # define R61581_HFP 10 296 # define R61581_HBP 10 297 # define R61581_VSPL 0 298 # define R61581_VSL 10 299 # define R61581_VFP 8 300 # define R61581_VBP 8 301 # define R61581_DPL 0 302 # define R61581_EPL 1 303 # define R61581_ORI 0 304 # define R61581_LV_COLOR_DEPTH 16 311 # define USE_ST7565 0 323 # define USE_UC1610 0 327 # define UC1610_HOR_RES LV_HOR_RES 328 # define UC1610_VER_RES LV_VER_RES 329 # define UC1610_INIT_CONTRAST 33 330 # define UC1610_INIT_HARD_RST 0 331 # define UC1610_TOP_VIEW 0 342 # define FBDEV_PATH "/dev/fb0" 353 # define USE_XPT2046 0 357 # define XPT2046_HOR_RES 480 358 # define XPT2046_VER_RES 320 359 # define XPT2046_X_MIN 200 360 # define XPT2046_Y_MIN 200 361 # define XPT2046_X_MAX 3800 362 # define XPT2046_Y_MAX 3800 363 # define XPT2046_AVG 4 364 # define XPT2046_INV 0 370 #ifndef USE_FT5406EE8 371 # define USE_FT5406EE8 0 375 # define FT5406EE8_I2C_ADR 0x38 382 # define USE_AD_TOUCH 0 404 #ifndef USE_MOUSEWHEEL 405 # define USE_MOUSEWHEEL 0 416 # define USE_LIBINPUT 0 420 # define LIBINPUT_NAME "/dev/input/event0" 431 # define EVDEV_NAME "/dev/input/event0" 432 # define EVDEV_SWAP_AXES 0 434 # define EVDEV_SCALE 0 436 # define EVDEV_SCALE_HOR_RES (4096) 437 # define EVDEV_SCALE_VER_RES (4096) 440 # define EVDEV_CALIBRATE 0 442 # define EVDEV_HOR_MIN 3800 443 # define EVDEV_HOR_MAX 200 444 # define EVDEV_VER_MIN 200 445 # define EVDEV_VER_MAX 3800 453 # define USE_KEYBOARD 0
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale