How to use TFT Display with Raspberry Pi Pico in C/C++

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • I want to build a colour name badge TFT Display based on the Raspberry Pi Pico and C/C++. Instead of using a specific Pico module I am using the generic MSP2401 2.4Inch Display. With some work this is great. Please visit my website to get more information: drjonea.co.uk/
    In this video I am going to share how I connected up the display and drive it from C/C++. Follow along with the code and the video to see how initialisation works. How everything else is really about drawing rectangles.
    Let me know what you think and I can do some more videos on other techniques with this display.
    My repo for working with the display is: github.com/jondurrant/RPIPico...
    This Video is Sponsor by Kunkune: www.kunkune.co.uk/
    UK Component retailer. Get a 20% discount off your first order with code "drjonea20". This excludes tools and test equipment.
    ⏰Timestamps
    00:00 Introduction
    01:30 MSP2401 TFT Display
    04:10 Connecting Up
    05:46 Initialising the Display
    10:52 Frame Buffers
    13:13 Rectangles
    16:44 Bitmaps and Fonts
    20:28 Demo and Summary
    Get more out of the Raspberry Pi Pico. Subscribe for more Python and C++ programming tips and tricks, like if you found this video helpful, and comment below with your thoughts or questions. Follow us on social media for the latest updates and exciting content!
    Video Title: How to use TFT Display with Raspberry Pi Pico in C/C++
    🔔Build, Code, Create - Your Pathway to Innovation Starts Here!! Subscribe now and unlock the power of Raspberry PI Pico for your Embedded IoT and Robotics projects.
    / @drjonea
    ✅Important Link to Follow
    🔗GitHub
    github.com/jondurrant
    ✅ Stay Connected With Me.
    👉Facebook: / drjondurrant
    👉Instagram: / drjonea
    👉Threads: www.threads.net/@drjonea
    👉Tiktok: / drjonea
    👉Twitter (X): / drjonea
    👉Linkedin: / jondurrant
    👉Pinterest: www.pinterest.co.uk/drjonea/
    👉Discord: discordapp.com/users/drjonea
    👉Website: drjonea.co.uk/
    ✅ For Business Inquiries: drjonea@jondurrant.com
    =============================
    ✅ Recommended Playlists
    👉 RP2040 Guides
    • Raspberry PI Pico-W WI...
    ✅ Other Videos You Might Be Interested In Watching:
    👉 Taking a look at the Badger2040 from PIMORONI with C++ Examples
    • Taking a look at the B...
    👉 Review and Tutorial: PIMORONI Galactic Unicorn (Pico-W Board)
    • Review and Tutorial: ...
    👉 PIMoroni Cosmic Unicorn Review & Setup: 32x32 RGB LEDs Powered By Pi Pico W
    • PIMoroni Cosmic Unicor...
    =============================
    ✅ About Dr Jon EA Ltd.
    Welcome to Dr Jon EA Ltd, your go-to channel for mastering Embedded Systems, IoT, and Robotics with the Raspberry PI Pico and beyond! Get into my hands-on tutorials and courses, created by me, Dr. Jon EA - a Udemy training author, enterprise architect, and passionate hobby developer based in Brighton, UK. Whether you're getting into coding with C, C++, or Python or exploring FreeRTOS, this channel is crafted to elevate your skills in a simple, accessible way. Join me on this journey of creation and innovation today!
    For Collaboration and Business inquiries, please use the contact information below:
    📩 Email: drjonea@jondurrant.com
    🔔Elevate Your Coding Skills to New Heights! Subscribe now and get on a learning journey with Raspberry PI Pico tutorials that make complex concepts simple.
    / @drjonea
    =================================
    ⚠️Disclaimer: I do not accept any liability for any loss or damage incurred from you acting or not acting as a result of watching any of my publications. You acknowledge that you use the information I provide at your own risk. Do your research.
    Copyright Notice: This video and my TH-cam channel contain dialogue, music, and images that are the property of Dr Jon EA Ltd. You are authorised to share the video link and channel and embed this video in your website or others as long as a link back to my TH-cam channel is provided.
    © Dr Jon EA Ltd
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 8

  • @ThreeStones379
    @ThreeStones379 หลายเดือนก่อน +1

    interestingly

    • @DrJonEA
      @DrJonEA  หลายเดือนก่อน

      Glad you found it so

  • @drfrancintosh
    @drfrancintosh หลายเดือนก่อน +1

    shades of display list graphics and Jay Minor! by the way, does the SPI interface include reading from the device? I ask because it seems the device should have a frame buffer of its own and you might be able to read from that frame buffer instead of having to write individual lines one at a time.

    • @DrJonEA
      @DrJonEA  หลายเดือนก่อน

      Thanks. I believe you can read back from the display but that still would not constitute a framebuffer. You would not be able to draft the display before making it visible in a single step.

    • @drfrancintosh
      @drfrancintosh หลายเดือนก่อน +1

      @@DrJonEA not to belabor the point… But if you wanted to draw a line on top of an existing image, you could read the values from what's in the display and add a pixel to that line or row and then write that back to the display… I don't know what kind of random access you have through the SPI interface but you could create a API that would act as a facade to the display frame buffer… and to your point, it would not be as efficient as doing a bitblt in memory

    • @drfrancintosh
      @drfrancintosh หลายเดือนก่อน +1

      I'm really enjoying your series… And finished your Udemy course… I owe you a cuppa coffee!

    • @DrJonEA
      @DrJonEA  หลายเดือนก่อน

      I do get what you mean and indeed you can do a lot without a framebuffer in RAM.

    • @DrJonEA
      @DrJonEA  หลายเดือนก่อน +1

      Thank you and I look forward to the coffee!