mirror of https://github.com/espruino/BangleApps
Remove "no-mixed-spaces-and-tabs": "off" and make linter happy
parent
894e13bd11
commit
0a32e40b1a
|
@ -34,7 +34,6 @@
|
|||
"no-delete-var": "off",
|
||||
"no-empty": "off",
|
||||
"no-inner-declarations": "off",
|
||||
"no-mixed-spaces-and-tabs": "off",
|
||||
"no-octal": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"no-redeclare": "off",
|
||||
|
|
|
@ -3,7 +3,7 @@ currently-running apps */
|
|||
(() => {
|
||||
function draw() {
|
||||
g.reset(); // reset the graphics context to defaults (color/font/etc)
|
||||
// add your code
|
||||
// add your code
|
||||
g.drawString("X", this.x, this.y);
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ function drawBerlinClock() {
|
|||
Bangle.on('lcdPower', (on) => {
|
||||
g.clear();
|
||||
if (on) {
|
||||
Bangle.drawWidgets();
|
||||
Bangle.drawWidgets();
|
||||
// call your app function here
|
||||
drawBerlinClock();
|
||||
}});
|
||||
|
|
|
@ -65,7 +65,7 @@ Bangle.on('touch', function(button) {
|
|||
// setting bpm by tapping the screen. Uses the mean time difference between several tappings.
|
||||
if (tindex < time_diffs.length) {
|
||||
if (Date.now()-tStart < 5000) {
|
||||
time_diffs[tindex] = Date.now()-tStart;
|
||||
time_diffs[tindex] = Date.now()-tStart;
|
||||
}
|
||||
} else {
|
||||
tindex=0;
|
||||
|
|
|
@ -51,8 +51,8 @@ function drawNum(num,col,x,y,func){
|
|||
let tx = x*100+25;
|
||||
let ty = y*104+32;
|
||||
for (let i=0;i<numerals[num].length;i++){
|
||||
if (i>0) g.setColor((func==fill)?"#000000":col);
|
||||
func(translate(tx,ty,numerals[num][i]));
|
||||
if (i>0) g.setColor((func==fill)?"#000000":col);
|
||||
func(translate(tx,ty,numerals[num][i]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
function draw() {
|
||||
var width = 24;
|
||||
g.reset();
|
||||
g.reset();
|
||||
g.setFont("6x8", 1);
|
||||
g.setFontAlign(0, 0);
|
||||
g.clearRect(this.x,this.y+15,this.x+width,this.y+23); // erase background
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(() => {
|
||||
function draw() {
|
||||
g.reset();
|
||||
var m = process.memory();
|
||||
var m = process.memory();
|
||||
var pc = Math.round(m.usage*100/m.total);
|
||||
g.drawImage(atob("BwgBqgP////AVQ=="), this.x+(24-7)/2, this.y+4);
|
||||
g.setColor(pc>70 ? "#ff0000" : (pc>50 ? "#ffff00" : "#ffffff"));
|
||||
|
|
Loading…
Reference in New Issue