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 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
Legacy Personal Blogs Help? Image and font conversion for TFT LCD not going as hoped.
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: 4ringfan
  • Date Created: 25 Mar 2015 12:52 PM Date Created
  • Views 737 views
  • Likes 1 like
  • Comments 2 comments
  • [-fpermissive]
  • lcd
  • compiler
  • image
  • tft
  • display
  • jpg
  • error
  • pixel
Related
Recommended

Help? Image and font conversion for TFT LCD not going as hoped.

4ringfan
4ringfan
25 Mar 2015

I'm trying to convert images for use on an LCD connected to an Arduino.

 

First I tried using the UTFT library.  I converted my image to an array using an online tool.  Whenever I tried to facilitate the array within any of my Arduino sketches I would get compiler errors that I could not resolve.

 

So, I moved on to a program called Pixelmeister.  Pixels. TFT graphics library for microelectronic devices  It had the added benefit of being able to not only convert my images to arrays of various sizes, but it also has the ability to convert any true type font to a pixelated array that I can use with my display.  A simple print at X,Y yields the display of whatever TTF size that I have added as an array.   The font portion works perfectly aside from the temporary license restrictions that limit which characters you can use.  You have to pony up the 30 Euros to really be able to play.  Below is a sample of the SignPainter TTF that I had displayed:

image

I still keep running into issues when trying to display an image.  Here is what I have for very short test code (I'll chop the array off) and below is what I keep getting for a compiler error.  It was a similar error that I would get with the UTFT library when I tried to display a picture.  In this code I simply wanted to display my avatar on the screen. "The Stupid, It Burns".

image

It appears to me to be some kind of type error, but I'm not sure why that would be because in both cases the array was software generated specifically for use with the libraries I'm using.  I think the compiler just doesn't like the alias?  Maybe?  Can I dumb down the error detection of the compiler?  Should I use the -fpermissive tag?  One other thing that I might have to consider is possibly that there is a problem with the location of my libraries.  I use multiple platforms and multiple computers so for the ease of keeping all of my non standard libraries handy to all of my arduino setups on my Mac at home, my PC at work, and my laptop when I'm mobile, I store all of those libraries in dropbox.  However, I doubt that is a problem because the libraries work for other applications outside of displaying an image.  Anyone have suggestions?  What am I doing WRONG?

image

image

  • Sign in to reply
  • 4ringfan
    4ringfan over 10 years ago in reply to clem57

    Hey Clem,

     

    Thanks for the response.  I am running 1.6.1 of the Arduino IDE.

    image

    Any idea on where I can place the flag to allow for this?

    Suggestions for converting the type if the library does not do it automatically?

    The present library that I'm playing with came from here: https://github.com/zxfr/Pixels

    The software I'm using to convert the image file is from here: Pixelmeister. User Interface modelling tool for microelectronic devices

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 10 years ago

    Ah! The library author did not use functions to convert types. If you can get to the complier options, I believe there is a flag to allow for this and not throw an error. Can you tell me where you got the library? and what version of Arduino IDE? Try the latest of 1.6.1 if you can.

    Clem

    • 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