mirror of https://github.com/espruino/BangleApps
decreased vibration time, decreased accel requirement
parent
1499a524d9
commit
3001618e0f
|
@ -10,3 +10,4 @@
|
||||||
1.08: still trying to fix the lack of vibrations
|
1.08: still trying to fix the lack of vibrations
|
||||||
1.09: hopefully now it's fixed?
|
1.09: hopefully now it's fixed?
|
||||||
1.10: not having web bluetooth to debug is a PAIN
|
1.10: not having web bluetooth to debug is a PAIN
|
||||||
|
1.11: decreased vibration time, decreased accel requirement
|
||||||
|
|
|
@ -84,7 +84,7 @@ function touchHandler (button, xy) {
|
||||||
|
|
||||||
function accelHandler (xyz) {
|
function accelHandler (xyz) {
|
||||||
|
|
||||||
if (xyz.diff >= 0.4) {
|
if (xyz.diff >= 0.3) {
|
||||||
|
|
||||||
menu = false;
|
menu = false;
|
||||||
rollDice();
|
rollDice();
|
||||||
|
@ -126,12 +126,7 @@ function rollDice() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Bangle.on ('accel', voidFn);
|
vibrate();
|
||||||
console.log ("before");
|
|
||||||
Bangle.buzz().then(()=>{
|
|
||||||
Bangle.on ('accel', accelHandler);
|
|
||||||
});
|
|
||||||
console.log ("after");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function random (max) {
|
function random (max) {
|
||||||
|
@ -142,9 +137,8 @@ function random (max) {
|
||||||
function vibrate() {
|
function vibrate() {
|
||||||
|
|
||||||
Bangle.on ('accel', voidFn);
|
Bangle.on ('accel', voidFn);
|
||||||
Bangle.buzz().then ((value) => {
|
Bangle.buzz(50, 1).then ((value) => {
|
||||||
|
|
||||||
console.log ("I ran.");
|
|
||||||
Bangle.on ('accel', accelHandler);
|
Bangle.on ('accel', accelHandler);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "multidice",
|
{ "id": "multidice",
|
||||||
"name": "multiple dice roller",
|
"name": "multiple dice roller",
|
||||||
"shortName":"multidice",
|
"shortName":"multidice",
|
||||||
"version":"1.10",
|
"version":"1.11",
|
||||||
"description": "roll anywhere from 1-8 dice at the same time",
|
"description": "roll anywhere from 1-8 dice at the same time",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,game",
|
"tags": "tool,game",
|
||||||
|
|
Loading…
Reference in New Issue