该模块具有如下特性: 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 修改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
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
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!