Hi,
I have just tried to load a simple program in my GFX 32, compiling is ok but program give me Error 21 on startup. Source code:
I have copied GCI and DAT files to micro SD (Fat16 formated).
Any idea why?
I have just tried to load a simple program in my GFX 32, compiling is ok but program give me Error 21 on startup. Source code:
Code:
#platform "uLCD-32PT_GFX2"#inherit "4DGL_16bitColours.fnc"#inherit "VisualConst.inc"#inherit "Essais 1Const.inc"#inherit "LedDigitsDisplay.INC"func main()// Uncomment the following if uSD images used.putstr("Mounting...\n"); if (!(disk:=file_Mount())) while(!(disk :=file_Mount())) putstr("Drive not mounted..."); pause(200); gfx_Cls(); pause(200); wend endif gfx_TransparentColour(0x0020); gfx_Transparency(ON);// Form2 generated 30/01/2012 23:08:55hndl := file_LoadImageControl("ESSAIS~1.dat", "ESSAIS~1.gci", 1);repeat img_Show(hndl,iForm1) ;gfx_Set(SCREEN_MODE,LANDSCAPE) ;// TempDigit generated 30/01/2012 22:30:38 img_Show(hndl, iTempDigit); // show all digits at 0, only do this once gfx_Set(4, 0); gfx_Set(TRANSPARENT_COLOUR, 0);// TempDigit generated 30/01/2012 22:35:45 img_Show(hndl, iTempDigit); // show all digits at 0, only do this once ledDigitsDisplay(0, iTempDigit, 104, 4, 0, 30, 0 ) ; foreverendfunc
Any idea why?
Comment