ILI9325D

FirewingUser.ILI9325D History

Hide minor edits - Show changes to output

Changed lines 7-8 from:
Download [ili9325Dzip.zip | this zip file] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.
to:
Download the zip file below and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.

*[[Attach:ILI9325Dv1.zip | ILI9325D.zip]]

Deleted lines 85-86:

Attach:ILI9235Dfile.zip
Changed line 7 from:
Download [[ili9325Dzip.zip | this zip file]] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.
to:
Download [ili9325Dzip.zip | this zip file] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.
Added line 85:
Attach:ILI9235Dfile.zip
October 15, 2014, at 08:51 AM by bitfogav - upload file
Changed lines 7-8 from:
Download [[TftILI9325D.zip | this zip file]] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.
to:
Download [[ili9325Dzip.zip | this zip file]] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.
Deleted line 84:
Attach:wifi-bug.zip
October 15, 2014, at 08:45 AM by bitfogav - upload zip
Changed lines 83-85 from:
end sub=]
to:
end sub=]

Attach:wifi-bug.zip
Changed lines 12-16 from:
=firewing [=
' set high speed clock...
clock
= 80

#option TFT_MODEL = ILI9325D
to:
=firewing [=clock = 80
#option TFT_MODEL
= ILI9325D
Changed lines 16-19 from:
... etc etc
=]

and that should be it! Have fun....
to:
 etc etc...=]

!!! Sample prog using the sdcard

=firewing [=
' you can download the images used in this demo from here
' http://www.firewing.info/user-uploads/FirewingUser/ColorTFTSamples/sd-image-files.zip

#option TFT_MODEL = ILI9325D
imports Tft
imports TftGraphic
imports Sd
imports FixedFont
   
function SetBitmap(x as ushort, y as ushort, filename as string) as byte
  dim data as ushort
  dim width as ushort
  dim height as ushort
     
  SetBitmap = SD.Open(filename)
  if SetBitmap = errOK then
      width.Byte0 = SD.ReadByte
      width.Byte1 = SD.ReadByte     
      height.Byte0 = SD.ReadByte
      height.Byte1 = SD.ReadByte
     
      Tft.ILI9325D.SetBounds(x,y, x + width - 1, y + height - 1)
      do     
        data.Byte0 = SD.ReadByte
        data.Byte1 = SD.ReadByte
        Tft.ILI9325D.WriteData(data)
      loop Until SD.EOF 
      SD.Close
  end if
end function

' program entry point...
Sub Main()

  Tft.Clear
  Tft.SetFont(Fixed)

  ' initialise the SD card...
  If SD.Init <> errOK Then
      Tft.WriteAt(10,10,"Failed to initialise")
 
  ' now read the data...
  else 
      while true 
        SetBitmap(0,0,"sunset.img")
        delayms(1000)
        SetBitmap(0,0,"bfly.img") 
        delayms(1000)   
        SetBitmap(0,0,"bird.img") 
        delayms(1000)
        SetBitmap(0,0,"puffin.img") 
        delayms(1000)
        SetBitmap(0,0,"tiger.img") 
        delayms(1000)
      end while
  end if 
End Sub

' disable UART1 on pins D0 and D1...
sub OnStartup() Handles PIC.OnStartup
  PPS.DisableRx1()
  PPS.DisableTx1()
end sub=]
Changed line 7 from:
Download [[http://www.firewing.info/user-uploads/FirewingUser/TftDrivers/TftILI9325D .zip | this zip file]] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.
to:
Download [[TftILI9325D.zip | this zip file]] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.
Added lines 1-22:
This module supports the ILI9325D Tft driver which comes with the 2.8' Tft shield from %newwin%[[http://imall.iteadstudio.com/development-platform/arduino/shields/im120417020.html  | iTeadstudio]]. 

%lfloat  margin-top=5px margin-right=10px margin-bottom=2px margin-left=10px% Attach:28iteadtft-01.jpg
[[<<]]
!!!Installation

Download [[http://www.firewing.info/user-uploads/FirewingUser/TftDrivers/TftILI9325D .zip | this zip file]] and then drag and drop the zip file into the Firewing IDE (don't unzip the contents, leave as they are).  This will install an updated Tft and new ILI9325D module into your user library.

!!!Using the ILI9325D Module

All you need to do to use the new module is put a TFT_MODEL option at the top of your program (but after any device or clock declarations).  For example:
=firewing [=
' set high speed clock...
clock = 80

#option TFT_MODEL = ILI9325D
imports Tft
imports TftGraphic
... etc etc
=]

and that should be it! Have fun....