Using properties in simple project

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
User avatar
faveremario
Posts: 28
Joined: Sat Jun 02, 2012 6:08 pm
Has thanked: 8 times
Been thanked: 13 times

Using properties in simple project

Post by faveremario »

Hi all

I have a small project where I teach my students how to use properties to make a project more readable.
What it does : Rood & Zwart are inputs (push-butons) ands ledrood & zwart are outputs.
The lines compile to :
SET_PORT_PIN(D, 1, GET_PORT_PIN(B, 5));
SET_PORT_PIN(D, 0, GET_PORT_PIN(B, 4));
wich looks fine to me!
However, when I compile the properties.fcfx there are errors undefined identifier "FCP_TRIS_B" .
Very strange !

When I separate the commands as i did in properties correct.fcfx, the project compiles OK, but then you lose quite some properties-power...

So : why can't we read & write on the same command ?
Thanks in advance to make the light shine in the dark :)
Attachments
properties correct.fcfx
(7.45 KiB) Downloaded 173 times
properties.fcfx
(6.61 KiB) Downloaded 173 times

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: Using properties in simple project

Post by Benj »

Hello,

Thanks for letting us know of the problem.

I've figured out a solution but it's not ideal as it will break the core functionality on other devices.

I'll keep investigating. It's like the pre-processor is missing the pre-processor substitution for the pin read registers, maybe because it's already nested inside the pin write.

Post Reply