fixed wrong spelling in variable name
parent
f0a2767c8c
commit
ad6ed2496e
|
|
@ -1,6 +1,6 @@
|
||||||
const c={"x":g.getWidth()/2,"y":g.getHeight()/2};
|
const c={"x":g.getWidth()/2,"y":g.getHeight()/2};
|
||||||
let zahlpos=[];
|
let zahlpos=[];
|
||||||
let unlock = true;
|
let unlock = false;
|
||||||
|
|
||||||
function zeiger(len,dia,tim){
|
function zeiger(len,dia,tim){
|
||||||
const x =c.x+ Math.cos(tim)*len/2,
|
const x =c.x+ Math.cos(tim)*len/2,
|
||||||
|
|
@ -45,8 +45,9 @@ function draw(){
|
||||||
if (unlock){
|
if (unlock){
|
||||||
const sekz = zeiger(150,2,s);
|
const sekz = zeiger(150,2,s);
|
||||||
g.fillPoly(sekz,true);
|
g.fillPoly(sekz,true);
|
||||||
g.fillCircle(c.x,c.y,4);
|
|
||||||
}
|
}
|
||||||
|
g.fillCircle(c.x,c.y,4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -94,7 +95,7 @@ g.clear();
|
||||||
drawScale();
|
drawScale();
|
||||||
draw();
|
draw();
|
||||||
|
|
||||||
let secondInteraval= setInterval(draw, 1000);
|
let secondInterval= setInterval(draw, 1000);
|
||||||
// Stop updates when LCD is off, restart when on
|
// Stop updates when LCD is off, restart when on
|
||||||
|
|
||||||
Bangle.on('lcdPower',on=>{
|
Bangle.on('lcdPower',on=>{
|
||||||
|
|
@ -122,6 +123,3 @@ Bangle.on('lock',on=>{
|
||||||
|
|
||||||
// Show launcher when middle button pressed
|
// Show launcher when middle button pressed
|
||||||
Bangle.setUI("clock");
|
Bangle.setUI("clock");
|
||||||
// Load widgets
|
|
||||||
//Bangle.loadWidgets();
|
|
||||||
//Bangle.drawWidgets();
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue