As mentioned previously, we are able to interact with the Blue Dot app in more ways than just a simple button press. The Blue Dot app can interpret where on the button a user presses, as well as detect double presses and swipes. In the following code, we will read from the Blue Dot app using Python.
Do the following :
from bluedot import BlueDot from signal import pause class BlueDotButton: def swiped(swipe): if swipe.up: print("Blue Dot Swiped Up") elif swipe.down: print("Blue Dot Swiped Down") elif swipe.left: print("Blue Dot Swiped Left") elif swipe.right: print("Blue Dot Swiped Right") def pressed(pos): if pos.top: print("Blue Dot Pressed from...