I finally purchase a real working display, since I was not successful using the cheap Chinese display.
Trying the example on page 34 from the gd2book_v0.pdf from the Excamera website.
The example is about using bitmap handles but unfortunately it does not compile.
It does not the "-1" value in this line FT.cmd_loadimage(-1, 0)
Any ideas as to how to make this work as in the example
Thanks,
Keith
- Code: Select all
'*****************************************************************************
'* Name : UNTITLED.1 *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2016 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 2/19/2016 *
'* Version : 1.0 *
'* Notes : *
'* : *
'*****************************************************************************
' Imports section...
#option _gccOptimise = Os
#option FT_MODEL = GAMEDUINO
imports Ft800
' Declarations...
Sub Main()
Ft.Clear()
Ft.cmd_text(240, 136, 29, OPT_CENTER, "Loading, please wait...")
Ft.Swap()
'Ft.cmd_loadimage(0, 0)
'Ft.Load("dog.jpg")
FT.BitmapHandle(0)
FT.cmd_loadimage(0, 0)
FT.load("sunrise.jpg")
FT.BitmapHandle(1)
FT.cmd_loadimage(-1, 0)
FT.load("healsky3.jpg")
while true
FT.Clear
Ft.Begin(BITMAPS)
Ft.Vertex2ii(0, 0, 0)
Ft.Vertex2ii(200,100, 1)
Ft.Swap()
Delayms(2000)
'FT.Clear
'Ft.Begin(BITMAPS)
'Ft.Vertex2ii(250, 100, 1)
'FT.Swap()
'Delayms(2000)
end while
end sub