• 已解决 73482 个问题
  • 已帮助 5993 位优秀工程师

某宝上买的一块树梅派显示屏SPI的谁能看看怎么装

Victor Yuan 2014-07-07 浏览量:3858
如题,说明书内容如此
驱动我也有,但是就是装不上,谁能看看他的命令是不是有错
我在安装的时候加了一句chmod 777 lcd 因为他说lcd不是可执行文件
MZTX661A-PI-EXT显示扩展板数据手册

目录 

1. 简介 ........................................................................................................... 2 
2. 功能概览 .................................................................................................... 2 
3. 引脚定义 .................................................................................................... 3 
4. 机械结构 .................................................................................................... 4 
5. 快速开始 .................................................................................................... 5 
6. 参考附件 .................................................................................................... 6


1. 简介 
MZTX661A-PI-EXT显示扩展板是一款专门为树莓派设计的,利用P1接口上的GPIO,I2C,SPI等接口作为数据传输介质的低成本触摸屏显示器。显示扩展板上的CPLD根据来自SPI接口的数据控制屏幕的显示内容。

该模块具有如下特性: 
l 配置简单,易于使用 
l 320x240 分辨率,16位,6万5千色 
l 2.2寸电阻式触摸屏 
l 显示屏通过SPI总线通讯,SPI时钟最高可达125MHZ,
l 触摸屏通过I2C总线通讯,I2C时钟最高达400KHZ 
l 无需额外供电 
l 板载4按键输入,1个开关,及1个红外线接收头,2个用户LED指示灯(选配)。
l 开源Linux驱动程序 

2. 功能概览

MZTX661A-PI-EXT显示扩展板包含一颗高速CPLD芯片(EPM3032),I2C接口的4线电阻式触摸控制芯片(TSC2003),4个轻触按键,1个开关,一个红外线接收头及2个用户LED指示灯(选配)。

I2C地址表
芯片型号 默认地址 可改为 
TSC2003 0x48 0x4B 
3. 引脚定义 

树莓派P1接口 MZTX661A-PI-EXT 
1 3V3 Power 
2 5V Power 
3 GPIO-0(IIC SDA) TSC2003 SDA数据脚 
4 5V Power 
5 GPIO-1(IIC SCL) TSC2003 SCL时钟脚 
6 GND 
7 GPIO-4 TSC2003 IRQ触摸中断 
8 GPIO-14 LED 指示灯 
9 GND 
10 GPIO-15 LED 指示灯 
11 GPIO-17 红外线数据 
12 GPIO-18(PWM) LCD PWM 背光亮度控制 
13 GPIO-21 K1 按键1 
14 GND 
15 GPIO-22 K2 按键2 
16 GPIO-23 K3 按键3 
17 3V3 Power 
18 GPIO-24 K4 按键4 
19 GPIO-10 (SPI MOSI) LCD MOSI SPI总线主出从入 
20 GND 
21 GPIO-9 (SPI MISO) LCD RST 显示屏复位 
22 GPIO-25 LCD RS 显示屏命令/数据 
23 GPIO-11 (SPI SCLK) LCD SCLK SPI总线时钟 
24 GPIO-8 (SPI CE0) LCD CS 显示片选 
25 GND 
26 GPIO-7 (SPI CE1) 开关信号 


5. 快速开始

首次使用时,按下面步骤操作:
1 将驱动程序文件压缩包(mztx661a-pi-ext.rar)通过读卡器复制到SD卡里或通过SSH传输到在目标树莓派上,然后将文件解压到/home/pi目录下。

2 修改config.txt文件
进入到boot目录,用nano工具修改config.txt,输入命令:
sudo nano config.txt
然后找到
# uncomment to force a console size. By default it will be display\'s size minus
# overscan.
将 #framebuffer_width=1280
#framebuffer_height=720
这2行改为:
framebuffer_width=640
framebuffer_height=480

3 进入到解压后的目录,输入命令:cd /home/pi/mztx661a-pi-ext/src
重新编译:输入命令:make

4 将目录下的自启动脚本文件lcd复制到 /etc/init.d目录下。输入命令:
sudo cp lcd /etc/init.d

5 设置每次开机时自动运行显示驱动程序,进入到/etc/init.d,输入命令:
sudo update-rc.d lcd defaults

6 重启系统,输入命入:
sudo reboot

6. 参考附件

显示屏控制器手册:bd663474.pdf
触摸芯片控制器手册:tsc2003.pdf

0 0 收起

我来回答

上传资料:
选择文件 文件大小不超过15M(格式支持:doc、ppt、xls、pdf、zip、rar、txt)
最佳答案
  • 错误不行有什么提示?ssh上去运行下dmesg,把显示结果都发来,难道是驱动没编译好?

    最好你把每步操作的提示都贴出来

    • 发布于 2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

其他答案 数量:28

  • make 后install没?
    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

  • 这好像是仿的德国产的那个小屏
    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

  • 是个小屏,功能挺多的,所以就买了
    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

  • 图片怎么上不去。。。我把淘宝链接发给你
    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

  • http://item.taobao.com/item.htm?spm=a230r.1.14.4.THRvcT&id=38185367118&ns=1&_u=7mvbcm0aca3#detail
    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

  • login as: pi
    pi@192.168.0.103's password:
    Linux raspberrypi 3.12.22+ #691 PREEMPT Wed Jun 18 18:29:58 BST 2014 armv6l

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Mon Jul  7 04:06:39 2014 from 192.168.0.100
    pi@raspberrypi ~ $ cd mztx661a-pi-ext/
    pi@raspberrypi ~/mztx661a-pi-ext $ cd src
    pi@raspberrypi ~/mztx661a-pi-ext/src $ make
    gcc -o mztx06a -l rt mztx06a.c bcm2835.c
    /usr/bin/ld: cannot open output file mztx06a: Permission denied
    collect2: ld returned 1 exit status
    make: *** [all] Error 1
    pi@raspberrypi ~/mztx661a-pi-ext/src $ ls
    ascii hex(8x16).h  bcm2835.h  lcd      lcdinit.c  Makefile   qqp_arm.h
    bcm2835.c          GB2312.h   lcd.bak  lcdpi.c    mztx06a.c  wii.py
    pi@raspberrypi ~/mztx661a-pi-ext/src $ ld returned 1 exit status
    ld: cannot open output file a.out: Permission denied
    pi@raspberrypi ~/mztx661a-pi-ext/src $ make -lpthread
    gcc -o mztx06a -l rt mztx06a.c bcm2835.c
    /usr/bin/ld: cannot open output file mztx06a: Permission denied
    collect2: ld returned 1 exit status
    make: *** [all] Error 1
    pi@raspberrypi ~/mztx661a-pi-ext/src $ sudo make
    gcc -o mztx06a -l rt mztx06a.c bcm2835.c

    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

  • root@raspberrypi:/etc/init.d# sudo update-rc.d lcd defaults
    update-rc.d: using dependency based boot sequencing
    insserv: script lcd is not an executable regular file, skipped!

    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

  • 执行完sudo make后,你ls -l看一下
    • 发布于2014-07-07
    • 举报
    • 评论 0
    • 0
    • 0

相关问题

问题达人换一批

某宝上买的一块树梅派显示屏SPI的谁能看看怎么装