Merge remote-tracking branch 'upstream/master'

master
hughbarney 2021-03-18 12:01:36 +00:00
commit b997bd9f6b
9 changed files with 13 additions and 9 deletions

View File

@ -1007,7 +1007,7 @@
"name": "Large Digit Blob Clock", "name": "Large Digit Blob Clock",
"shortName" : "Blob Clock", "shortName" : "Blob Clock",
"icon": "clock-blob.png", "icon": "clock-blob.png",
"version":"0.04", "version":"0.05",
"description": "A clock with big digits", "description": "A clock with big digits",
"tags": "clock", "tags": "clock",
"type":"clock", "type":"clock",
@ -2294,7 +2294,7 @@
{"id": "counter", {"id": "counter",
"name": "Counter", "name": "Counter",
"icon": "counter_icon.png", "icon": "counter_icon.png",
"version": "0.02", "version": "0.03",
"description": "Simple counter", "description": "Simple counter",
"tags": "tool", "tags": "tool",
"allow_emulator": true, "allow_emulator": true,
@ -2835,7 +2835,7 @@
{ "id": "widgps", { "id": "widgps",
"name": "GPS Widget", "name": "GPS Widget",
"icon": "widget.png", "icon": "widget.png",
"version":"0.01", "version":"0.02",
"description": "Tiny widget to show the power on/off status of the GPS. Require firmware v2.08.167 or later", "description": "Tiny widget to show the power on/off status of the GPS. Require firmware v2.08.167 or later",
"tags": "widget,gps", "tags": "widget,gps",
"type":"widget", "type":"widget",
@ -2847,7 +2847,7 @@
{ "id": "widhrt", { "id": "widhrt",
"name": "HRM Widget", "name": "HRM Widget",
"icon": "widget.png", "icon": "widget.png",
"version":"0.01", "version":"0.02",
"description": "Tiny widget to show the power on/off status of the Heart Rate Monitor. Requires firmware v2.08.167 or later", "description": "Tiny widget to show the power on/off status of the Heart Rate Monitor. Requires firmware v2.08.167 or later",
"tags": "widget, hrm", "tags": "widget, hrm",
"type":"widget", "type":"widget",

View File

@ -3,3 +3,4 @@
Remove 'faceUp' check as it's automatic Remove 'faceUp' check as it's automatic
0.03: Modified for use with new bootloader and firmware 0.03: Modified for use with new bootloader and firmware
0.04: Modified to account for changes in the behavior of Graphics.fillPoly 0.04: Modified to account for changes in the behavior of Graphics.fillPoly
0.05: Slight increase to draw speed after LCD on

View File

@ -86,9 +86,9 @@ function clearTimers() {
} }
function startTimers() { function startTimers() {
g.clear(); g.clear();
redraw();
Bangle.drawWidgets(); Bangle.drawWidgets();
intervalRef = setInterval(redraw,1000); intervalRef = setInterval(redraw,1000);
redraw();
} }
Bangle.loadWidgets(); Bangle.loadWidgets();
startTimers(); startTimers();

View File

@ -1,2 +1,3 @@
0.01: New App! 0.01: New App!
0.02: Added decrement and touch functions 0.02: Added decrement and touch functions
0.03: Set color - ensures widgets don't end up coloring the counter's text

View File

@ -1,9 +1,8 @@
var counter = 0; var counter = 0;
g.setColor(0xFFFF);
function updateScreen() { function updateScreen() {
g.clearRect(0, 50, 250, 150); g.clearRect(0, 50, 250, 150);
g.setColor(0xFFFF);
g.setFont("Vector",40).setFontAlign(0,0); g.setFont("Vector",40).setFontAlign(0,0);
g.drawString(Math.floor(counter), g.getWidth()/2, 100); g.drawString(Math.floor(counter), g.getWidth()/2, 100);
g.drawString('-', 45, 100); g.drawString('-', 45, 100);
@ -44,7 +43,7 @@ g.drawString('Tap right or BTN1 to increase\nTap left or BTN3 to decrease\nPress
Bangle.loadWidgets(); Bangle.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();
updateScreen();
// TODO: Enable saving counts to file // TODO: Enable saving counts to file
// Does not work if widgets are not visible
// Add small watch // Add small watch

View File

@ -1,2 +1,2 @@
0.01: First version 0.01: First version
0.02: Don't break if running on 2v08 firmware (just don't display anything)

View File

@ -1,4 +1,5 @@
(function(){ (function(){
if (!Bangle.isGPSOn) return; // old firmware
var img = E.toArrayBuffer(atob("GBiBAAAAAAAAAAAAAA//8B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+A//8AAAAAAAAAAAAA==")); var img = E.toArrayBuffer(atob("GBiBAAAAAAAAAAAAAA//8B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+A//8AAAAAAAAAAAAA=="));
function draw() { function draw() {

View File

@ -1,2 +1,3 @@
0.01: First version 0.01: First version
0.02: Don't break if running on 2v08 firmware (just don't display anything)

View File

@ -1,4 +1,5 @@
(function(){ (function(){
if (!Bangle.isHRMOn) return; // old firmware
var img = E.toArrayBuffer(atob("FhaBAAAAAAAAAAAAAcDgD8/AYeGDAwMMDAwwADDAAMOABwYAGAwAwBgGADAwAGGAAMwAAeAAAwAAAAAAAAAAAAA=")); var img = E.toArrayBuffer(atob("FhaBAAAAAAAAAAAAAcDgD8/AYeGDAwMMDAwwADDAAMOABwYAGAwAwBgGADAwAGGAAMwAAeAAAwAAAAAAAAAAAAA="));
function draw() { function draw() {