1
0
Fork 0

minor fixes

- add drawWidgets()
master
MaBecker 2019-11-26 17:51:23 +01:00
parent e473c6f4ee
commit 913440c596
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ The widget example is available in [`apps/_example_widget`](apps/_example_widget
* `widget.js` - widget code * `widget.js` - widget code
## `apps.json` format #### `apps.json` format
``` ```
{ "id": "appid", // 7 character app id { "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 ## 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| | 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) [Graphics Class](https://banglejs.com/reference#Graphics)
## 'Testing' folder ## 'Testing' folder
The [`testing`](testing) folder contains snippets of code that might be useful for your apps. The [`testing`](testing) folder contains snippets of code that might be useful for your apps.

View File

@ -6,6 +6,7 @@
// special function to handle display switch on // special function to handle display switch on
Bangle.on('lcdPower', (on) => { Bangle.on('lcdPower', (on) => {
if (on) { if (on) {
drawWidgets();
// call your app function here // call your app function here
}}); }});