Re: Wierd result when inverting an input
Code:
Bell var portB.6
Report var byte
main:
Report = ~~(Bell + 48)
debug report
pause 500
goto main
Thank you Archangel for your snippet.
I tried with one tilde character ~(Bell + 48) and it does't work. (Just strange characters)
I tried with two tildes, as per your example, and what I get is the original Logic state of the pin. It seems that two tildes are simply ignored.
So, at the moment I have used the IF/THEN/ELSE/ENDIF workaround. Conclusion we cannot invert a pin alias and convert it to ascii using the "!" or the bitwise "~"
Cheers
Al.
Last edited by aratti; - 19th June 2015 at 18:57.
All progress began with an idea
Bookmarks