I found a set of widgets that crashes the command list.
Removing the comment from any of the lines in the example the next instruction (the CMD_TEXT) is not executed and is not executed even the test on the tag.
- Code: Select all
clock = 80
#option _gccOptimise = Os
#option FT_MODEL = GAMEDUINO ' enable for Gameduino 2
imports Ft800
Sub Main()
Ft.SelfCalibrate()
dim i as byte
while true
ft.Clear()
tagmask(0)
CMD_SCROLLBAR(12, 26, 16, 160, 0, 120, 60, 480)
CMD_GAUGE(353, 46, 36, 0, 4, 8, 40, 100)
CMD_CLOCK(437, 46, 36, 0, 13, 51, 17, 0)
CMD_NUMBER(442, 150, 28, 0, 42)
' CMD_PROGRESS(115, 57, 180, 12, 0, 20, 100)
' CMD_SLIDER(112, 114, 80, 8, 0, 30, 100)
' CMD_DIAL(429, 221, 36, 0, 6144)
' CMD_SPINNER(346, 221, 0, 0)
' CMD_TOGGLE(220, 168, 40, 27, 0, 0, "on" & cchar(255) & "off")
ft.cmd_text(240, 136, 31, OPT_CENTER, "Hello world")
i = Ft.GetTag()
Ft.cmd_text(15, 240, 27, 0, "Selected Tag : " + cstr(i))
Ft.Swap()
end while
End Sub
I tried it on Gameduino and EVE and the result is the same.
The only thing I noticed is that in the source of cmd_dial is missing the 2 postincrement ( but does not solve it by putting it ).
Has anyone found something similar and/or solved?