! is the logical not operator afaik , anyway that's the way I use it (its a C thing but works in pbp too)
I think its the same as the "tilde" ~ but my laptop keyboard makes it hard to find. maybe someone can confirm this
pin_mode = ! (pin_mode) is the way to read it , if pin_mode is 1 then ! pin_mode becomes 0 or if pin_mode is 0 then ! pin_mode becomes 1
not to be confused with != which is not equal to
ps
just tried it . seems "~ ! not" are all the same thing (on bit and byte vars anyway) for what it worth
Bookmarks