diff --git a/README.md b/README.md index ee1173ffe..6b66b7517 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ The widget example is available in [`apps/_example_widget`](apps/_example_widget * `widget.js` - widget code -## `apps.json` format +#### `apps.json` format ``` { "id": "appid", // 7 character app id @@ -224,7 +224,7 @@ The screen is parted in a widget and app area for lcd mode `direct`(default). ## Available colors -Yuu can use `g.setColor(r,g,b)` OR `g.setColor(16bitnumber)` - some common 16 bit colors are below: +You can use `g.setColor(r,g,b)` OR `g.setColor(16bitnumber)` - some common 16 bit colors are below: | color-name | color-value| | :-: | :-: | @@ -256,7 +256,6 @@ Yuu can use `g.setColor(r,g,b)` OR `g.setColor(16bitnumber)` - some common 16 bi [Graphics Class](https://banglejs.com/reference#Graphics) - ## 'Testing' folder The [`testing`](testing) folder contains snippets of code that might be useful for your apps. diff --git a/apps/_example_app/app.js b/apps/_example_app/app.js index 0db3abdf9..87fc3cfda 100644 --- a/apps/_example_app/app.js +++ b/apps/_example_app/app.js @@ -6,6 +6,7 @@ // special function to handle display switch on Bangle.on('lcdPower', (on) => { if (on) { + drawWidgets(); // call your app function here }});