mirror of https://github.com/espruino/BangleApps
change swipe direction
parent
cb8d3ddce1
commit
c0e1173925
|
@ -372,10 +372,10 @@ NRF.on('disconnect',function() { setLight('L3','BT',!isBTConnected(),Light_warn)
|
||||||
|
|
||||||
Bangle.on('swipe', function(directionLR) {
|
Bangle.on('swipe', function(directionLR) {
|
||||||
if (directionLR == 1) {
|
if (directionLR == 1) {
|
||||||
mode=mode+1;
|
mode=mode-1;
|
||||||
}
|
}
|
||||||
if (directionLR == -1) {
|
if (directionLR == -1) {
|
||||||
mode=mode-1;
|
mode=mode+1;
|
||||||
}
|
}
|
||||||
if (mode < 0 ) { mode=5; }
|
if (mode < 0 ) { mode=5; }
|
||||||
mode=(mode % 6);
|
mode=(mode % 6);
|
||||||
|
|
Loading…
Reference in New Issue