Loop for to next

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
User avatar
cubitus54
Flowcode v5 User
Posts: 110
Joined: Wed Jun 19, 2013 7:18 am
Has thanked: 7 times
Been thanked: 32 times
Contact:

Loop for to next

Post 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 360 times
OK.png
(57.11 KiB) Downloaded 668 times
NOK.png
(60.45 KiB) Downloaded 668 times
Flowcode V6.1.2.0(11 05 2015)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Loop for to next

Post 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.

User avatar
cubitus54
Flowcode v5 User
Posts: 110
Joined: Wed Jun 19, 2013 7:18 am
Has thanked: 7 times
Been thanked: 32 times
Contact:

Re: Loop for to next

Post by cubitus54 »

Hello,

Yes ! It is what I did

Thank you
Flowcode V6.1.2.0(11 05 2015)

Post Reply