fbtft里面的write_register这个函数不知道是在哪里实现 就是发现写完SPI数据的时候中间的间隔有的打 ,不知道是不是这个函数里面加了延时的
离线
https://github.com/torvalds/linux/blob/master/drivers/staging/fbtft/fb_ssd1331.c
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
.height = HEIGHT,
.gamma_num = GAMMA_NUM,
.gamma_len = GAMMA_LEN,
.gamma = DEFAULT_GAMMA,
.fbtftops = {
.write_register = write_reg8_bus8,
.init_display = init_display,
.set_addr_win = set_addr_win,
.set_gamma = set_gamma,
.blank = blank,
},
};
就是 write_reg8_bus8
离线
https://github.com/torvalds/linux/blob/master/drivers/staging/fbtft/fb_ssd1331.c
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
.height = HEIGHT,
.gamma_num = GAMMA_NUM,
.gamma_len = GAMMA_LEN,
.gamma = DEFAULT_GAMMA,
.fbtftops = {
.write_register = write_reg8_bus8,
.init_display = init_display,
.set_addr_win = set_addr_win,
.set_gamma = set_gamma,
.blank = blank,
},
};就是 write_reg8_bus8
但是我自己写的那个lt7381我没有给这个write_register 赋函数啊
离线
你参考的是哪个驱动? ili9341 ?
是的 就是9341
离线