Pin reference

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Amrat
Posts: 26
http://meble-kuchenne.info.pl
Joined: Sun Jan 31, 2021 11:25 am

Pin reference

Post by Amrat »

Why in calculation icon reference to pin with$ sign, such as $D1, $D2 etc
Please explain
Thanks
Amrat

Steve-Matrix
Matrix Staff
Posts: 1265
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

Re: Pin reference

Post by Steve-Matrix »

You can reference the chip ports and pins using code like the following in a calculation icon:

Code: Select all

$PORTA = 5
$PORTB.6 = 1
$PORTA.0 = $PORTB.2
You can also use these referenced in decision and loop icons.

In Flowcode v10 you will also be able to use chip references like "$B4" and "$C.2", and with chips like the Arduino where there are alternative pin names like "$pin3" you will be able to use those also.

Amrat
Posts: 26
Joined: Sun Jan 31, 2021 11:25 am

Re: Pin reference

Post by Amrat »

Big Thanks

Post Reply