Sunday, July 07, 2019

高PPI的树莓派2B/B+ 通用2.2寸TFT显示扩展板发布,带多按键和红外功能! | ukonline2000's blog

高PPI的树莓派2B/B+ 通用2.2寸TFT显示扩展板发布,带多按键和红外功能! | ukonline2000's blog

EmailThis Premium lets you save unlimited bookmarks, PDF, DOCX files, PPTs and images. It also gives you a PDF copy of every page that you save. Upgrade to Premium →

Raspberry pi 2B/B+ 树莓派2B/B+ 通用TFT显示扩展板

1.扩展板尺寸:65mm×56.5mm,标准的树莓派HAT扩展板尺寸

2.2.2寸320×240分辨率,高PPI显示屏,更细腻小巧

3.多按键设计,支持6个按键,尽可能的支持用户的按键需求

4.红外接收功能

  购买链接:http://item.taobao.com/item.htm?&id=45695146268

官方Raspbian系统使用屏的步骤:

1.升级内核到最新

sudo rpi-update

2.安装gpio库和所需要的驱动

sudo apt-get install gcc python-pygame python-dev
sudo wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz
sudo tar zxvf RPi.GPIO-0.5.11.tar.gz
cd RPi.GPIO-0.5.11
sudo python setup.py install

3.配置config文件,使能I2C和SPI接口

sudo nano /boot/config.txt

添加以下一行
dtparam=i2c_arm=on,spi=on

4.配置modules,启动屏幕

sudo nano /etc/modules
添加以下一行
fbtft_device name=pitft rotate=270 speed=48000000 fps=30

注意,使用官方最新jessie系统,请忽略上面步骤3~4,直接配置config文件,

sudo nano /boot/config.txt

添加以下两行行
dtparam=i2c_arm=on,spi=on
dtoverlay=pitft28-resistive, rotate=270 speed=48000000 fps=30

5.配置cmdline文件,让调试台显示在屏上

sudo nano /boot/cmdline.txt

在"rootwait"之前添加以下一行
fbcon=map:10 fbcon=font:VGA8x8

QQ图片20150717110006

保存重启

5.重启登陆后,想进入图形界面请输入一下命令

sudo mv /usr/share/X11/xorg.conf.d/99fbturbo.conf ~

export FRAMEBUFFER=/dev/fb1

startx

TFT屏的Raspbian系统下载地址:http://pan.baidu.com/s/1c0EpVSs 密码: r9xd

红外接收功能使用参考:http://ukonline2000.com/?p=296

Source: http://ukonline2000.com/?p=619

Please check the attached file.

EmailThis was not able to extract useful content from the website. Hence, we have saved the webpage to a PDF file. You can find that attached along with this email.

Upgrade to Premium Plan

✔ Save unlimited bookmarks.

✔ Save PDFs, DOCX files, images and Excel sheets as email attachments.

✔ Get priority support and access to latest features.

Upgrade to Premium

No comments: