I just had a thought.
Can Flowcode be modified so that if multiple pins require selecting, then it could be done in the same way as another product:
All you do just set one pin e.g with LCD data4 on pin RC0
Then on the same pin select Next follows up.
All the pins after data4 will automatically be assigned:
Rapid pin selection on components with multiple pins.
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
- 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: Rapid pin selection on components with multiple pins.
Thanks Martin,
I think something similar to this is now part of the current release - patchset 2. Choose your first pin and then right click the pin and select auto connect to fill in the rest.
I think something similar to this is now part of the current release - patchset 2. Choose your first pin and then right click the pin and select auto connect to fill in the rest.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Rapid pin selection on components with multiple pins.
Thanks Ben. That sounds great. Thanks for letting us know. I will have a play and let you know how it goes.
Martin
- JonnyW
- Posts: 1230
- Joined: Fri Oct 29, 2010 9:13 am
- Location: Matrix Multimedia Ltd
- Has thanked: 63 times
- Been thanked: 290 times
- Contact:
Re: Rapid pin selection on components with multiple pins.
Hi. At the moment every component will simply increment all remaining selections based on the connection you have made. I was unsure whether there would be more requirements than that.
However the components can modify this on an event, so for example a keypad can auto populate rows only if they are selected, columns if they are. This might be preferable for you, but still needs to be implemented.
Jonny
However the components can modify this on an event, so for example a keypad can auto populate rows only if they are selected, columns if they are. This might be preferable for you, but still needs to be implemented.
Jonny
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Rapid pin selection on components with multiple pins.
Hi Ben & Jonny,
There is a definite improvement, Even over pre V6 flowcode versions.
I don't believe the preceding pins should be altered, just succeeding.
E.g if all 8 pins are on a0 to a7 then you want to change a5 and all following pins to c5 to c7 ,then this could be done with without changing a0 to a4
That would be a good compromise.
What do people think about that idea?
There is a definite improvement, Even over pre V6 flowcode versions.
I don't believe the preceding pins should be altered, just succeeding.
E.g if all 8 pins are on a0 to a7 then you want to change a5 and all following pins to c5 to c7 ,then this could be done with without changing a0 to a4
That would be a good compromise.
What do people think about that idea?
Martin
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
- Contact:
Re: Rapid pin selection on components with multiple pins.
Hi
This seems to work ok on PIC/ARM-ECIO/AVR
But does not work on PIC16
Example select 30F2012 and the LCD display
Set the first conection to Port BL.0
Right click on the second line it changes the first line back to B.0
Tried this with a few different chips with thw same results
Also same using the LED array
This seems to work ok on PIC/ARM-ECIO/AVR
But does not work on PIC16
Example select 30F2012 and the LCD display
Set the first conection to Port BL.0
Right click on the second line it changes the first line back to B.0
Tried this with a few different chips with thw same results
Also same using the LED array
1 in 10 people understand binary, the other one doesn't !
- JonnyW
- Posts: 1230
- Joined: Fri Oct 29, 2010 9:13 am
- Location: Matrix Multimedia Ltd
- Has thanked: 63 times
- Been thanked: 290 times
- Contact:
Re: Rapid pin selection on components with multiple pins.
Hi John.
I think this should work OK. $PORTB_L.0 and $PORTB.0 are the same pin, as well as PORTB0.0.
$PORTB_L is the low byte of $PORTB, as is $PORTB0. The L and H are legacy as I have been informed these are what we label on our dev boards so dropping them could be confusing. The compiled code should be exactly the same though.
Jonny
I think this should work OK. $PORTB_L.0 and $PORTB.0 are the same pin, as well as PORTB0.0.
$PORTB_L is the low byte of $PORTB, as is $PORTB0. The L and H are legacy as I have been informed these are what we label on our dev boards so dropping them could be confusing. The compiled code should be exactly the same though.
Jonny
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Rapid pin selection on components with multiple pins.
My take on this is it would be better if only pins below are automatically assigned and not pins above.JohnCrow wrote: Set the first connecion to Port BL.0
Right click on the second line it changes the first line back to B.0
For example I have a 7 segment quad and would like commons connected from pin C.0 to C.3
Segment (A) to (G) + (DP) connected from pin D.0 to D.7
With the current method for commons change A.0 to B.0, then can select either B.0 or the next pin below and connections will be: So the idea would then select pin connected to segment (A) and change that from C.4 to D.0 then select 'Auto connect digital' (either select D0 or next pin below).
Connections should then change from Segment (B) all the way to DP and ignore pins above (all commons)
Unfortunately as it stands now if you now select from segment (A) and 'Auto connect digital' then this will happen which is not ideal.: All Common pins (above Segement (A)) are now wrong.
Martin
Martin