2021-10-22 07:54:44 +00:00
|
|
|
WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() {
|
|
|
|
g.reset();
|
|
|
|
if (NRF.getSecurityStatus().connected)
|
|
|
|
g.setColor((g.getBPP()>8) ? "#07f" : (g.theme.dark ? "#0ff" : "#00f"));
|
|
|
|
else
|
|
|
|
g.setColor(g.theme.dark ? "#666" : "#999");
|
|
|
|
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y);
|
|
|
|
},changed:function() {
|
|
|
|
WIDGETS["bluetooth"].draw();
|
|
|
|
}};
|
2021-10-22 11:57:53 +00:00
|
|
|
NRF.on('connect',WIDGETS["bluetooth"].changed);
|
|
|
|
NRF.on('disconnect',WIDGETS["bluetooth"].changed);
|