Hi.
How does one do "to the power of" in picbasic
I am trying to do a bitwise AND of some numbers in a loop a bit like this:
for i = 1 to 16
x = (y & ((2 ^ i) -1))
next i
But ^ means something else.
I am trying to do this:
x = Y & 1
x = Y & 3
x = Y & 7
x = Y & 15...etc
It's all to do with setting serial latched driver outputs on one by one sequentially from a single number
Bookmarks