element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Smarter Life
  • Challenges & Projects
  • Design Challenges
  • Smarter Life
  • More
  • Cancel
Smarter Life
Blog A Very Compact Christmas Display - Part 031
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: COMPACT
  • Date Created: 11 Dec 2013 11:43 AM Date Created
  • Views 569 views
  • Likes 0 likes
  • Comments 4 comments
  • psoc4
  • psoc_4
  • smarter_life_challenge
  • psoc_4200
  • compact_xmas_display
  • smarter_life
  • psoc
Related
Recommended

A Very Compact Christmas Display - Part 031

COMPACT
COMPACT
11 Dec 2013

Processing Power

image

Here's the result of creating, importing and drawing the font for the LED display.

 

 

image

With the font captured in a 256 colour .BMP file for useable mspaint editing, I needed to import it into my program.

I've done this using Processing 2.1. If you haven't heard of Processing before have a look at the web http://processing.org.

I found it quite interesting and useful. According to its documentation it's actually not Java but Java based. Conversion from Processing to Java occurs when the Run button is clicked and that is what I observed.

I found it as easy to use as the Arduino and its derivatives considering the Arduino IDE was derived from Processing.

 

I always use symbolics for programming because it provides a very flexible and consistent means of reconfiguring software.

 

image

This code creates a comma delimited list with comments for direct use with source code. It can be very easily extended to insert indentation and data structure pre and post-amble to create a complete .h header file.

Code writing code?

 

image

 

I've inserted this generated code into my project and wrote a supporting drawletter() function to display the font on the LED display to display.

It's as easy to use as drawletter('A', x, y, colour);

  • Sign in to reply
  • vsluiter
    vsluiter over 11 years ago

    I always use symbolics for programming because it provides a very flexible and consistent means of reconfiguring software.

    True words! I've been taught by software people that if you write a number in a piece of code, it should be either defined somewhere or VERY clear that is would only be used once and have a clear meaning.

    Consistently using symbolics makes upgrades easier, and makes you think about refactoring while writing!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • COMPACT
    COMPACT over 11 years ago in reply to bose

    The code presented in this article is Processing code.

    It only contains one function called setup().

    That's it.

    Very easy - Just remember that it is object oriented and requires the correct method for conversion between classes.

    e.g. from a character to a string using Character.tostring(cc)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 11 years ago

    Well done Monte,

     

    I figured BIG fonts were next.

    With full control of the bits/pixels, you can do a lot of amazing graphics with your displays.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bose
    bose over 11 years ago

    Hi,

     

    This is really good.

    Is it possible to share the source code for the Processing part?

    It would be really helpful.

     

    -Abhijit

    • 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