element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • 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 Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Ralph Yamamoto's Blog Merry Christmas Element14!
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 24 Dec 2022 6:21 AM Date Created
  • Views 777 views
  • Likes 15 likes
  • Comments 6 comments
  • Christmas 2022
  • rpi pico display
Related
Recommended

Merry Christmas Element14!

ralphjy
ralphjy
24 Dec 2022

Last month scottiebabe inspired me with her post A simple game on the RPi Pico to buy a Pi Pico LCD.  I doubt that I'll ever develop a game for it, but it seemed like a piggyback display with buttons would be a perfect addition to a Pico W.

I didn't get the Pimoroni version, but got a Waveshare version on Amazon that has a slightly larger 240x240 display and a joystick in addition to the 4 buttons - and was slightly cheaper.

image

Alas, as with much that I buy from Amazon - I received it in 2 days, but haven't had time to do much with it.  I thought maybe I could use it with the Pimoroni Micropython version that Scottie is using, but that didn't run.  Not sure how hard it would be to port to this display.  

I decided to try a simple "Christmas Card", so I loaded CircuitPython and some Adafruit libraries.  I'll admit that I don't do any fancy display stuff with either Micropython or CircuitPython.

So, here it is - wishing a Merry Christmas and Happy Holidays to the E14 community:

image

and the requisite bouncing ball video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Hope everyone has safe holidays and best wishes for the New Year!

Ralph

  • Sign in to reply

Top Comments

  • scottiebabe
    scottiebabe over 2 years ago +2
    Merry Christmas to you ralphjy! and thanks for the kind words you have shared with me! I have one of 240x135 waveshare displays, I believe it should be a simple change to run this on a 240x240 display…
  • ralphjy
    ralphjy over 2 years ago in reply to scottiebabe +1
    Works great
Parents
  • scottiebabe
    scottiebabe over 2 years ago

    Merry Christmas to you ralphjy! and thanks for the kind words you have shared with me!

    image

    I have one of 240x135 waveshare displays, I believe it should be a simple change to run this on a 240x240 display.

     

    # Merrry Christmas Element14!
    # -scottiebabe 2022
    # for a 240x240 display I believe you can just use DISPLAY_PICO_EXPLORER
    # and assign the correct pins
    from machine import Pin
    from pimoroni_bus import SPIBus
    from picographics import PicoGraphics, DISPLAY_PICO_DISPLAY, PEN_RGB332
    Pin(12,Pin.OUT)(1)# set display reset high
    
    spibus = SPIBus(cs=9, dc=8, sck=10, mosi=11)
    display = PicoGraphics(display=DISPLAY_PICO_DISPLAY, bus=spibus, pen_type=PEN_RGB332,rotate=0)
    
    
    display.set_pen(0x00)
    display.clear()
    
    red = 0xE0
    green = 0x1C
    display.set_font('cursive')
    # Write 'Merry'
    s = 'Merry'
    xi = 10
    for i in range(len(s)):
        display.set_pen(red if i&1 else green)
        display.text(s[i],xi,20,200,1.2)
        xi+=display.measure_text(s[i], 1.2)
    
    # Write 'Christmas'
    s = 'Christmas!!'
    xi = 50
    for i in range(len(s)):
        display.set_pen(red if i&1 else green)
        display.text(s[i],xi,50,200,1.2)
        xi+=display.measure_text(s[i], 1.2)
        
    
    display.set_font('bitmap8')
    display.text('Thanks ralphjy :)',20,90,200,2)
    display.update()
    

    Thanks to having shabaz and baldengineer on each of my shoulders telling me to buy it and a moose mug in hand I bought a TS80P usb-c soldering iron. It was supposed to arrive yesterday but with the weather and holiday shipping volume it didn’t make it yet. Hopefully it will arrive soon!

    Thanks again ralphjy and the element14 community for all the fun blogs, projects, and discussions of 2022. Element14 is definitely the best electronics community on the internet!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ralphjy
    ralphjy over 2 years ago in reply to scottiebabe

    image

    Works great Relaxed

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • ralphjy
    ralphjy over 2 years ago in reply to scottiebabe

    image

    Works great Relaxed

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • baldengineer
    baldengineer over 2 years ago in reply to ralphjy

    I'd say it's a Christmas miracle, but it is actually because this community and its members are so awesome.

    • Cancel
    • Vote Up 0 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 © 2025 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

  • X
  • Facebook
  • linkedin
  • YouTube