Skip to content
Snippets Groups Projects
Commit 256534d4 authored by Robert Geislinger's avatar Robert Geislinger
Browse files

Fixed condition.

"&" doesnt work on JerusalemArtichoke. With "and" it's working
Update buttons.rst
parent 78fd5bee
No related branches found
No related tags found
No related merge requests found
Pipeline #3927 passed
...@@ -21,10 +21,10 @@ in your scripts. ...@@ -21,10 +21,10 @@ in your scripts.
if pressed != 0: if pressed != 0:
break break
if pressed & buttons.BOTTOM_LEFT != 0: if pressed and buttons.BOTTOM_LEFT != 0:
print("Left button pressed!") print("Left button pressed!")
if pressed & buttons.BOTTOM_RIGHT != 0: if pressed and buttons.BOTTOM_RIGHT != 0:
print("Right button pressed!") print("Right button pressed!")
.. py:function:: read(mask) .. py:function:: read(mask)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment