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.
Is there any known working TFT screens for the netduino? I've been searching but am not finding anything other than an Adafruit one that people can't seem to get working.
I currently have a Seeed Studio 2.8" TFT v2.1 screen that I picked up from Radio Shack for about 10 bucks the other day during a "closing sale" where everything was on sale.
I've tried taking their drivers from their git hub site and porting it to C#, but it does not display anything (other than the backlight). I can't even tell if it's actually doing anything. I ported it as if it was going to run on a LINKIT device as that looked the closest to the .net micro framework.
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.
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.
I reversed the order of the bits for the character row so that it now makes it a bit easier to manually write out fonts.So if that was written for the old drawcharacter method, each character will be backwards. I'll take a look at the tool and your code in a little bit and check it out.
Transparency doesn't exist with the ILI9341. When writing a buffer you write the color of the pixel, there is no "transparent" color.
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).
thanks, but what about the other wires? where do I connect the other cabels (CS, RESET, D/C, SDI, SCK, SDO). I also found an example where RESET and D/C is connectet to the Analog Ports.
other example:
VCC to 3.3v
GND power ground.
CS to D10
RESET to A1
D/c to A2
SDI to D11 (Mosi)
SCK to D13 (spck)
This is confusing.
what is the right wiring with an Netduino and this display to use with vecc Libs?
Do i need the CD4050 Hex Buffer/ Converter like for Arduino?