Merge remote-tracking branch 'upstream/master'

pull/694/head
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",
"shortName" : "Blob Clock",
"icon": "clock-blob.png",
"version":"0.04",
"version":"0.05",
"description": "A clock with big digits",
"tags": "clock",
"type":"clock",
@ -2294,7 +2294,7 @@
{"id": "counter",
"name": "Counter",
"icon": "counter_icon.png",
"version": "0.02",
"version": "0.03",
"description": "Simple counter",
"tags": "tool",
"allow_emulator": true,
@ -2835,7 +2835,7 @@
{ "id": "widgps",
"name": "GPS Widget",
"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",
"tags": "widget,gps",
"type":"widget",
@ -2847,7 +2847,7 @@
{ "id": "widhrt",
"name": "HRM Widget",
"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",
"tags": "widget, hrm",
"type":"widget",

View File

@ -3,3 +3,4 @@
Remove 'faceUp' check as it's automatic
0.03: Modified for use with new bootloader and firmware
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() {
g.clear();
redraw();
Bangle.drawWidgets();
intervalRef = setInterval(redraw,1000);
redraw();
}
Bangle.loadWidgets();
startTimers();

View File

@ -1,2 +1,3 @@
0.01: New App!
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;
g.setColor(0xFFFF);
function updateScreen() {
g.clearRect(0, 50, 250, 150);
g.setColor(0xFFFF);
g.setFont("Vector",40).setFontAlign(0,0);
g.drawString(Math.floor(counter), g.getWidth()/2, 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.drawWidgets();
updateScreen();
// TODO: Enable saving counts to file
// Does not work if widgets are not visible
// Add small watch

View File

@ -1,2 +1,2 @@
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(){
if (!Bangle.isGPSOn) return; // old firmware
var img = E.toArrayBuffer(atob("GBiBAAAAAAAAAAAAAA//8B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+B//+BgYGBgYGBgYGBgYGBgYGBgYGB//+A//8AAAAAAAAAAAAA=="));
function draw() {

View File

@ -1,2 +1,3 @@
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(){
if (!Bangle.isHRMOn) return; // old firmware
var img = E.toArrayBuffer(atob("FhaBAAAAAAAAAAAAAcDgD8/AYeGDAwMMDAwwADDAAMOABwYAGAwAwBgGADAwAGGAAMwAAeAAAwAAAAAAAAAAAAA="));
function draw() {