No addpins in Flexbasic?
pik33
Posts: 2,388
It seems FlexBasic doesn't know what addpins is , so I have to set every pins individually.
Is there any equivalent? (or am I blind enough to not see it?) If no... this is the feature request. Addpins for p2 not only makes pin setting faster, but, what is more important, does this in the same time for more than one pins
Of course inline asm can do this but it would be a good thing to have this in FlexBasic.
Comments
The equivalent is:
+ (npins<<6)
while npins is the number of pins to add. Not sure if the parentheses are needed or not in Basic,in Spin they are not needed.
For example:
Andy