App-lvgl-touchPad/components/LCD_SPI_Device/dir_lcd.h
2024-12-01 12:20:05 +00:00

23 lines
495 B
C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef DIR_LCD_H
#define DIR_LCD_H
#include <stdbool.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <linux/spi/spidev.h>
#include "lcd.h"
#define SET_DIRECTION 2 //0 1为竖屏显示,刷新方向区别 2 3横屏显示
void lcd_test(void);
void LCD_Write_Buffs(u_int8_t* buff,u_int16_t len);
void LCD_Color_Fill(u_int16_t sx,u_int16_t sy,u_int16_t ex,u_int16_t ey,u_int16_t *color);
#endif