树莓派与微雪触摸屏连接

按照微雪官网配置,死活进不去。(使用的触摸屏硬件分辨率为800×480 7寸)

微雪官网配置使用如下:
如何使用

  1. 用于电脑的 Windows 系统。本LCD可工作于PC版Windows 7 / 8 / 8.1 / 10 系统。使用方法:
  1. 打开LCD背部的backlight开关。
  2. 将LCD的Touch接口连接到PC机的USB接口。稍等片刻,Windows会自动识别触摸功能。
  3. 将LCD的HDMI接口连接到PC机的HDMI接口。
    注意事项:当电脑同时连接多个显示器的时候,只能通过本LCD控制主显示器上的光标,因此建议把LCD设置为主显示器。
  1. 用于树莓派的Raspbian / Ubuntu / Kali / Retropie和WIN10 IoT系统。当LCD工作于树莓派的这些系统时,必须手动设置分辨率,否则会显示异常。当LCD工作于PC版的Windows 系统时,无此问题。

请在树莓派官网下载最新版本的镜像。

将压缩文件下载到PC上,并解压得到.img文件。
TF卡连接到PC,使用SDFormatter.exe软件格式化TF卡。
打开Win32DiskImager.exe软件,选择第1步准备的系统镜像,点击write烧写系统镜像。
烧写完成后,打开TF卡根目录的config.txt文件,在config.txt最后加入以下代码,保存并安全弹出TF卡。
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
hdmi_drive=1
必须确保等号两边没有空格。
3) 保存并将TF卡插入树莓派。
4) 打开LCD背部的backlight开关。
5) 将LCD的Touch接口连接到树莓派的USB接口。
6) 将LCD的HDMI接口连接到树莓派的HDMI接口,给树莓派上电,正常等待几秒后可正常显示。

最后添加两行代码即可:

变为:
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_drive=1
hdmi_cvt 800 480 60 6 0 0 0

即可。

配置文件如下:(433MB的最小的系统上测试的)

For more options and information see

http://rpf.io/configtxt

Some settings may impact device functionality. See link above for details

uncomment if you get no picture on HDMI for a default “safe” mode

#hdmi_safe=1

uncomment this if your display has a black border of unused pixels visible

and your display can output without overscan

#disable_overscan=1

uncomment the following to adjust overscan. Use positive numbers if console

goes off screen, and negative if there is too much border

#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

uncomment to force a console size. By default it will be display’s size minus

overscan.

#framebuffer_width=1280
#framebuffer_height=720

uncomment if hdmi display is not detected and composite is being output

#hdmi_force_hotplug=1

uncomment to force a specific HDMI mode (this will force VGA)

#hdmi_group=1
#hdmi_mode=1

uncomment to force a HDMI mode rather than DVI. This can make audio work in

DMT (computer monitor) modes

#hdmi_drive=2

uncomment to increase signal to HDMI, if you have interference, blanking, or

no display

#config_hdmi_boost=4

uncomment for composite PAL

#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

Uncomment some or all of these to enable the optional hardware interfaces

#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

Additional overlays and parameters are documented /boot/overlays/README

Enable audio (loads snd_bcm2835)

dtparam=audio=on

[pi4]

Enable DRM VC4 V3D driver on top of the dispmanx display stack

dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d

max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_drive=1
hdmi_cvt 800 480 60 6 0 0 0

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值