brad wrote:How many FPS can you get from this when running at 80Mhz?
Im sorry I can't really give you an FPS Brad, it depends on the render time it takes within the Graphic subroutines and what you are sending out to the display.. But it is pretty quick!.
brad wrote:How many colors can you get from it?
The shield we have used is one from IteadStudio
2.4 TFT Display. It has just over 262K of colors.
We have a routine abit like - "SetPenColor(255, 255, 255)" within each parameter you can enter a value between 0-255, which represents (RED, GREEN, BLUE).
brad wrote:Do you have the code for your demo video?
I have some example code below, but all the examples including the code will be released soon.
Code: Select all
' drwa header and footer
Tft.Clear()
Tft.SetBrushColor(255, 0, 0)
Tft.FillRect(0, 0, 319, 13)
Tft.SetBrushColor(64, 64, 64)
Tft.FillRect(0, 226, 319, 239)
Tft.SetFont(Fixed)
Tft.Brush.Style = BrushStyle.IsClear
Tft.Graphic.Align = TextAlign.Center
Tft.SetPenColor(255, 255, 255)
Tft.WriteStr(160,3,"* Firewing Color Tft Display Library *")
Tft.SetPenColor(255,255,0)
Tft.WriteStr(160,229,"<http://www.firewing.info>")
' draw border
Tft.SetPenColor(255,255,255)
Tft.SetBrushColor(0, 0, 255)
Tft.Rect(0, 14, 319, 225)
' draw crosshairs
Tft.SetPenColor(0, 0, 255)
Tft.setBrushColor(0, 0, 0)
Tft.Line(159, 15, 159, 224)
Tft.Line(1, 119, 318, 119)
for i as ushort = 9 to 310 step 10
Tft.Line(i, 117, i, 121)
next
for i as ushort = 19 to 220 step 10
Tft.Line(157, i, 161, i)
next
' Draw sin-, cos- and tan-lines
Tft.SetPenColor(0,255,255)
Tft.WriteAt(5,15,"Sin")
for i as ushort = 1 to 317
Tft.SetPixel(i,119 + (sin(((i*1.13)*3.14)/180)*95))
next
Tft.SetPenColor(255,0,0)
Tft.WriteAt(5,27,"Cos")
for i as ushort = 1 to 317
Tft.SetPixel(i,119+(cos(((i*1.13)*3.14)/180)*95))
next
Tft.SetPenColor(255,255,0)
Tft.WriteAt(5,39,"Tan")
for i as ushort = 1 to 317
Tft.SetPixel(i,119+(tan(((i*1.13)*3.14)/180)))
next