element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog RPi3A+ with 2.2" PiTFT
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Raspberry Pi requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 6 Mar 2022 1:30 AM Date Created
  • Views 748 views
  • Likes 10 likes
  • Comments 3 comments
Related
Recommended
  • RPi3A+
  • Adafruit 2.2" PiTFT

RPi3A+ with 2.2" PiTFT

ralphjy
ralphjy
6 Mar 2022

Thanks to Secret Santa, I got an Adafruit 2.2" PiTFT Display.

After I received it, I realized that it fits perfectly on top of a RPi3A+.  Maybe it was designed that size on purpose?

image

And the open frame Adafruit case (just top and bottom plexiglass covers) has just enough space for the CSI and DSI cables to fit under the display.  I think I may print an exterior case so that I can mount a Pi Camera on the other side and build a smart camera.

Adafruit has a good tutorial that covers installation of the display - Adafruit 2.2" PiTFT Easy Install. 

They have a github repo that has installer scripts for their RPi hardware - Raspberry Pi Installer Scripts.git

Installed the latest archived Raspian Buster image (there is a possibility that some Bullseye images may cause problems) and downloaded that repo to the RPi

image

The adafruit-pitft.py script is used to configure the display modes and rotations for the various PiTFT types (sizes and touchscreen options).  The Pi must be rebooted after configuring.

There are three basic display modes

  1. Text Console (basically a terminal window on the TFT and HDMI is blank)
  2. HDMI Mirror aka FBCP (frame buffer copy) (TFT and HDMI displays are the same)
  3. Raw Framebuffer (use TFT as display independent of HDMI - HDMI is /dev/fb0 and TFT is /dev/fb1)

Text Console

sudo python3 adafruit-pitft.py --display=22 --rotation=270 --install-type=console

image

HDMI Mirror

sudo python3 adafruit-pitft.py --display=22 --rotation=270 --install-type=fbcp

image

There are a couple of things about this mode -

  • The TFT resolution is only 320x240, so the Desktop won't be extremely useful
  • If I set the rotation for my preferred TFT orientation - the HDMI image is upside-down, I guess someone likes their buttons and cables on top?

I did not try the Raw Framebuffer, but I'll try some images and videos later.  The only issue may be rendering speed as the framebuffer is not accelerated.

So, a useful Secret Santa present...

  • Sign in to reply

Top Comments

  • DAB
    DAB over 1 year ago +1
    Nice, but a bit small for my old eyes.
  • ralphjy
    ralphjy over 1 year ago in reply to robogary

    No, haven't tried streaming anything yet.  Probably try something later this week.  I think I'll try to play a local mp4 file first and if that works - I'll try streaming something over the network.  I'm not really that interested in streaming movies, but I would like to see if it works with RTSP streams from my IP cams.  Not sure how well this will work with omxplayer which is what I use with my camera monitor setup.  I saw a comment online that omxplayer will work using fbcp to the TFT buffer.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • robogary
    robogary over 1 year ago

    have you tried streaming movies ?  

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 1 year ago

    Nice, but a bit small for my old eyes.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube