Sunday 7 June 2015

Creating images for the Astro-Pi HAT

My CodeClub loved their first session with the Astro-Pis. They particularly enjoyed displaying text on the LED matrix and were keen to create images like the space-invader that comes with the examples.

Obviously you can make these up directly in Python by making a list and loading it by the API, but this can be tricky in terms of colour design and involves lots of squinting.

When we made the TechWillSaveUs DIY gamers last year, they produced a simple Windows App for creating images for the monochrome matrix this device had.

I thought I'd try to knock up a similar application for Raspbian using pygame. There are a few programs for Windows and online that do a similar job, but I wanted something that would run natively on the Pi.


My app allows you to create patterns using the colours selected by the buttons on the righthand side.

You can then export this 8x8 pixel image to a png (filename is image8x8.png), print the corresponding Python list to the console or load it directly onto the Astro-Pi LED matrix.



You can also rotate the image once it is loaded on to the Astro-Pi.

It is a little rough around the edges at the moment although my son's efforts at beta testing seem to have helped my eliminate most of the glaring bugs.

If you want to give it a try, it is here on GitHub.

47 comments:

  1. well i guess i'm the only one who read the readme fie

    ReplyDelete
    Replies
    1. Easily Distracted: Creating Images For The Astro-Pi Hat >>>>> Download Now

      >>>>> Download Full

      Easily Distracted: Creating Images For The Astro-Pi Hat >>>>> Download LINK

      >>>>> Download Now

      Easily Distracted: Creating Images For The Astro-Pi Hat >>>>> Download Full

      >>>>> Download LINK Qx

      Delete
  2. This was a very simple and easy to follow tutorial. I wish I had found this earlier when i deperately needed it for one of my projects! Good find though.

    ReplyDelete
  3. You completed a few fine points there. I did a search on the subject and
    found nearly all persons will go along with with your blog picbear

    ReplyDelete
  4. This impressed me so much amazing. Keep working and providing information
    activator

    ReplyDelete
  5. hi sir, Wow really interesting article, may later be able to share other helpful information are more interesting. Thank you!vmix crack

    ReplyDelete
  6. hi Dear, Thank you for sharing your details and experience. I think it very good for me. Keep it up! Also May you like TopCrackWindows

    ReplyDelete
  7. Hi, Thank you so much for taking the time for you to share such a good information. I actually prefer to reading your post. Keep it up! Format Factory Pro Torrent

    ReplyDelete
  8. MKVToolnix Crack is an amazing POST with good content.FINDCRACK is the best crack software site for all Mac and Windows users all over the world.

    ReplyDelete
  9. I appreciate you sharing such useful information. Thank you! It is always a pleasure to read your posts. Thank you!Wondershare Filmora X Crack

    ReplyDelete
  10. I wanna recommend this website to you. Please visit and you will get good information, Thank you for sharing good info. Iris Pro Crack

    ReplyDelete
  11. I’m glad that you just shared this helpful info with us. Please keep us informed like this
    FileZilla Pro

    ReplyDelete

  12. PC Crack
    Thank you for reading,
    I hope this post was useful to you.
    I appreciate you sharing such an informative and interesting post.
    License Cracked

    ReplyDelete
  13. Hi, Thank you so much for taking the time for you to share such a good information. I actually prefer to reading your post. Keep it up! Bandizip 7.17 Serial Key

    ReplyDelete
  14. I appreciate, lead to I discovered exactly what I
    was having a look for. You’ve ended my four day long hunt!
    God Bless you man. Have a great day. Bye GTA V Crack Free Download

    ReplyDelete
  15. I think F-Secure Freedome VPN is a fantastic Post with great content. CRACKDUE is the best cracked software site for all Mac and Windows users throughout the world.

    ReplyDelete

  16. Good Post. This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you.
    Driver Easy Crack key

    ReplyDelete
  17. I think Edraw Crack is a great Post with very good content. CRACKDUE is the best crack software site for all Mac and Windows users.

    ReplyDelete
  18. I love your writing style really enjoying this web site.
    thanks for Share with us this great and informative post post.
    Download Synthesia

    ReplyDelete
  19. A typical installation requires 5-8 GB. Recommended: A solid-state drive (SSD) is recommended.aiseesoft fonelab
    crack



    ReplyDelete
  20. Thanks for reading,
    This post was hopefully helpful to you.
    Your post was interesting and informative, so thanks for sharing.
    Isobuster crack

    ReplyDelete
  21. NCH Pixillion Image Converter Plus Crack . is a great Post with useful information and great content. CRACK GURU is the most popular crack software website for Mac users and Windows users worldwide.

    ReplyDelete
  22. Hi dear, Thank you for sharing your data and experiences. It looks very good to me. Keep moving forward! You may also like
    click this website

    ReplyDelete
  23. It is the most popular crack software website for Mac users and Windows users worldwide.
    UCRACKS

    ReplyDelete
  24. HI Dear, I have appreciated the fact that you took take some good time to work on this very blog. It’s great and fantastic piece. Keep it up as I look forward to read more from this website
    Musify serial key


    ReplyDelete
  25. It is the most popular crack software website for Mac users and Windows users worldwide.microsoft office

    ReplyDelete
  26. Good job and thanks for sharing such a good blog You’re doing a great job. Keep it up Windows 11 can be activated with this code.

    ReplyDelete
  27. It’s great and fantastic piece. Keep it up as I look forward to read more from this website.
    Adobe Photoshop

    ReplyDelete
  28. bald (adj.) c. 1300, ballede, "wanting hair in some part where it naturally grows," of uncertain origin.
    auslogicsbostspeed crack

    ReplyDelete
  29. Men being in the state of MPB can suffer from hair loss as early as at their 20s or even at their teens. global mapper 22 0 4 full crack

    ReplyDelete
  30. PASSFAB FOR RAR CRACK content and information on the Post are excellent. For Mac and Windows users worldwide,

    ReplyDelete
  31. HAPPY NEW YEAR
    Wishing you beautiful moments, treasured memories, and all the blessing a heart can know: HAPPY NEW YEAR :

    I love what you've got to say. But maybe you could a little more in the way of content so people could connect with it better. Please also visit my website and tell us what you think . Much thanks to you!
    Global Mapper Crack
    BitRecover MBOX to PDF Wizard Crack
    RadioBOSS Crack
    BitComet Crack
    Typing Master Pro Crack

    ReplyDelete
  32. thanks for sharing
    https://windowsactivators.org/ms-office-365-product-key-2019/

    ReplyDelete
  33. Thanks for sharing such an amazing blog with us it was very helpful.... http://uid.me/proversion_crack#

    ReplyDelete
  34. I appreciate your attention to your website and your extensive information.
    It's good to find a blog every once in a while that's not the same unpleasant news. Fantastic reading! Fantastic reading!
    I have saved your site, and your RSS feeds are included in my Google account.
    connectify hotspot pro full crack download
    betternet premium crack
    avira phantom vpn pro crack
    autocad 2022 crack

    ReplyDelete
  35. adobe photoshop cs6 extended crack .dll files 32bit/64bit
    Excellent! This is the most useful information we've found on the topic so far. You are most welcome. I appreciate your work in this field.

    ReplyDelete
  36. Thanks Admin For Sharing Your Great Ides. If you want to Download the Official Crack Then Click Here
    DriverEasy Professional Crack License Key

    ReplyDelete
  37. Good site work this is great its wonderful.
    musify review

    ReplyDelete
  38. I am an SEO Writer For Example: Downlaod any Cracked Software at Maniscrack

    ReplyDelete
  39. I'm Very Impressive For This Information! Thank You. You can Also Download the latest Crack Software and check out these Link.
    StreamGaGa Download For PC
    IObit Uninstaller Pro Full Activated

    ReplyDelete