Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

studlyed

Member Since 22 Dec 2014
Offline Last Active Mar 13 2015 03:05 AM
-----

#61561 LED/LCD TFT Screen

Posted by studlyed on 08 February 2015 - 02:02 AM

Using the tool in your link, it exports out a TinyFont file. I have written a font class that can read in that file. Using that tool and class, you should be able to create any sized font you want, as long as it fits in memory. I have found some weirdness with what it outputs though, sometimes, depending on the font, the left or right margin has a padding of 253 pixels. So I had to work around that by putting in a "max margin" amount. It needs some optimizing work before I get the code up into the git repository (currently it goes through 2 conversions, 1 into the HelpersFont, then another into the font the driver uses). I'll let you know when I get it done and pushed into the git repository.

 

On a side note, that tool is pretty awesome, being able to take any font and build something the .net framework can use easily is completely awesome. But I did find a bug, in order to use the file spit out by the current version of that program, be sure to put a ` in the "These" box, otherwise you will be missing the ` character and the letters will be off by one. For example, you want it to print out "hello". You would get "ifmmp" (all letters slid over by one).




#61532 LED/LCD TFT Screen

Posted by studlyed on 06 February 2015 - 05:13 AM

I just added support for the netduino helper fonts. I also included the fonts in the driver so you don't have to reference the helpers library if you don't want to.

 

To use the helper fonts in the driver:

                var font = new NetduinoHelpersFont(VerdanaBold14.Bitmaps,
                                                   VerdanaBold14.Descriptors,
                                                   VerdanaBold14.Height,
                                                   VerdanaBold14.FontSpace);
                tft.DrawString(10, 10, "Current Temperature", 0xF800, font);

To use the fonts in the helpers library, you would need to get to the bitmaps and descriptors in the font, as well as the height. The FontSpace didn't exist in their libraries, so you need to find one that works for you, I went through them and 2 pixels personally looked the best for them, except the fixed width ones, it was best with 0.

 

Let me know if you need help with it or if there is anything else you would like to have added to it and I will look at what it would take.




#61330 LED/LCD TFT Screen

Posted by studlyed on 21 January 2015 - 05:39 AM

Here's a link to the driver that I've created on git hub.

 

https://github.com/v...Drivers.Ili9341

 

I've been testing this on my Seeed Studio lcd, would be cool to see if it would work on others as well.




#61189 LED/LCD TFT Screen

Posted by studlyed on 09 January 2015 - 03:32 AM

I finally got the Seeed Studio lcd to work, I'm cleaning up the driver a lot (basically a rewrite of it) and once that's done I'll be posting it. Performance increases, breaking pieces out, making it more modular etc.

It's only a display driver so far though, no touch input yet. That'll be coming soon.




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.