Page 1 of 1

Loop for to next

Posted: Sun Aug 23, 2015 4:34 pm
by cubitus54
Hello,

Please, look the pictures.
Program Ardiuno Mega 2560

Code: Select all

void FCM_DrawBox .....

    MX_SINT16 FCL_X;
    MX_SINT16 FCL_Y;
    MX_SINT16 FCL_PIXEL;
Macro "DrawBox"
GLCD_18_test_SPI.fcfx
(25.23 KiB) Downloaded 361 times
OK.png
(57.11 KiB) Downloaded 668 times
NOK.png
(60.45 KiB) Downloaded 668 times

Re: Loop for to next

Posted: Mon Aug 24, 2015 11:14 am
by Benj
Hello,

Inside your loop you will need a calculation with the following code.

.pixel_boucles = .pixel_boucles - 1

There is a bug we are aware of where you try and use a variable to do the count then the variable will always be assumed to be a byte. This bug should hopefully be resolved shortly.

Re: Loop for to next

Posted: Mon Aug 24, 2015 4:24 pm
by cubitus54
Hello,

Yes ! It is what I did

Thank you