mirror of https://github.com/espruino/BangleApps
Disable screen turn on on bluetooth status change
parent
d9d5926416
commit
7ad29b48b4
|
@ -7,7 +7,6 @@ WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() {
|
||||||
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y);
|
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y);
|
||||||
},changed:function() {
|
},changed:function() {
|
||||||
WIDGETS["bluetooth"].draw();
|
WIDGETS["bluetooth"].draw();
|
||||||
Bangle.setLCDPower(1); // turn screen on
|
|
||||||
}};
|
}};
|
||||||
NRF.on('connect',WIDGETS["bluetooth"].changed);
|
NRF.on('connect',WIDGETS["bluetooth"].changed);
|
||||||
NRF.on('disconnect',WIDGETS["bluetooth"].changed);
|
NRF.on('disconnect',WIDGETS["bluetooth"].changed);
|
||||||
|
|
Loading…
Reference in New Issue