ips
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ips [2018/01/20 02:46] – [修改代码] admin | ips [2025/10/14 06:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== IPS/TFT液晶屏 ==== | + | ==== SPI驱动液晶屏(framebuffer方式) |
| - | 这个页面讲述如何使用MT7688A驱动液晶屏幕。 8-) | + | 这个页面讲述如何使用MT7688A驱动液晶屏幕。 8-) ,据了解,在MT7688上用FB方法驱动彩屏,WIDORA首当其冲。 |
| + | |||
| + | 教程做好的固件: | ||
| ===准备=== | ===准备=== | ||
| Line 23: | Line 25: | ||
| | 3V3 电源 | BL 背光控制,高电平点亮 | | | 3V3 电源 | BL 背光控制,高电平点亮 | | ||
| - | {{ :: | + | {{ :: |
| - | ====修改代码==== | + | ===修改代码=== |
| 首先,保证有openwrt_widora的代码并且编译过,因为涉及到内核代码修改,不编译是找不到内核源码的。 | 首先,保证有openwrt_widora的代码并且编译过,因为涉及到内核代码修改,不编译是找不到内核源码的。 | ||
| Line 45: | Line 47: | ||
| 4 回到openwrt_widora根目录,运行make kernel_menuconfig,找 | 4 回到openwrt_widora根目录,运行make kernel_menuconfig,找 | ||
| Device Drivers | Device Drivers | ||
| + | Character devices | ||
| + | |||
| + | {{:: | ||
| + | |||
| Graphics support | Graphics support | ||
| - | | + | |
| - | | + | {{:: |
| - | | + | |
| - | Frame buffer Devices | + | 分别展开看: |
| - | -*- Backlight & LCD device | + | Direct Rendering Manager |
| - | | + | < |
| - | [*] Bootup logo ---> | + | |
| - | + | ||
| - | | + | |
| Frame buffer Devices | Frame buffer Devices | ||
| - | <*> Support for small TFT LCD display modules | + | |
| - | | + | < |
| - | + | ||
| - | Bootup logo | + | |
| - | [*] | + | |
| + | -*- Backlight & LCD device support | ||
| + | |||
| + | Console display driver support | ||
| + | {{:: | ||
| + | |||
| + | | ||
| + | [ ] | ||
| | | ||
| | | ||
| Line 90: | Line 100: | ||
| 由于配置内核后,会和openwrt里个别选项冲突,例如有如下需要手动选择的情况,按照正常平台选择即可。 | 由于配置内核后,会和openwrt里个别选项冲突,例如有如下需要手动选择的情况,按照正常平台选择即可。 | ||
| {{:: | {{:: | ||
| + | |||
| + | ===颜色反了=== | ||
| + | 修改fb_ili9341.c,在0x11前增加一条0x21指令: | ||
| + | write_reg(par, | ||
| + | write_reg(par, | ||
| + | 修改后编译,刷入NEO。 | ||
| + | |||
| + | ===自动关屏幕问题=== | ||
| + | 在drivers/ | ||
| + | |||
| + | ===测试=== | ||
| + | |||
| + | 不出意外,可以看到启动logo了: | ||
| + | |||
| + | {{:: | ||
| + | |||
| + | 终端,可以看到/ | ||
| + | |||
| + | {{:: | ||
| + | |||
| + | 把随机数打印到屏幕,不出意外看到花屏,root@Widora: | ||
| + | |||
| + | {{:: | ||
| + | |||
| + | 把屏幕例化成了很多tty设备,所以也可以往屏幕打印字符了: | ||
| + | root@Widora: | ||
| + | root@Widora: | ||
| + | root@Widora: | ||
| + | root@Widora: | ||
| + | root@Widora: | ||
| + | | ||
| + | 效果: | ||
| + | |||
| + | {{:: | ||
ips.1516416378.txt.gz · Last modified: (external edit)
