forked from FOSS/BangleApps
commit
9b8cb3126e
|
@ -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.
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// special function to handle display switch on
|
||||
Bangle.on('lcdPower', (on) => {
|
||||
if (on) {
|
||||
drawWidgets();
|
||||
// call your app function here
|
||||
}});
|
||||
|
||||
|
|
Loading…
Reference in New Issue