From 256534d44c6d8500b8eb38f21211ac8a45d7caa4 Mon Sep 17 00:00:00 2001 From: Robert Geislinger <mitachundkrach@gmail.com> Date: Thu, 12 Sep 2019 13:27:51 +0000 Subject: [PATCH] Fixed condition. "&" doesnt work on JerusalemArtichoke. With "and" it's working Update buttons.rst --- Documentation/pycardium/buttons.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/pycardium/buttons.rst b/Documentation/pycardium/buttons.rst index 1119f700..130c6441 100644 --- a/Documentation/pycardium/buttons.rst +++ b/Documentation/pycardium/buttons.rst @@ -21,10 +21,10 @@ in your scripts. if pressed != 0: break - if pressed & buttons.BOTTOM_LEFT != 0: + if pressed and buttons.BOTTOM_LEFT != 0: print("Left button pressed!") - if pressed & buttons.BOTTOM_RIGHT != 0: + if pressed and buttons.BOTTOM_RIGHT != 0: print("Right button pressed!") .. py:function:: read(mask) -- GitLab