I think the bitwise and (single &) is a bug, shouldn't it be a logical and (&&) to return true if the key is pressed and was or was not previously pressed?
edit: Actually I guess it's fine the way it is since the bitwise and should have the same effect as the logical and here.
I'm looking at porting the Trellis library to python so it can run on the BBB or Raspi and noticed this code:
I think the bitwise and (single &) is a bug, shouldn't it be a logical and (&&) to return true if the key is pressed and was or was not previously pressed?
edit: Actually I guess it's fine the way it is since the bitwise and should have the same effect as the logical and here.