1
0
Fork 0

Merge pull request #54 from MaBecker/fix-typos-and-forms

Fix typos and forms
master
Gordon Williams 2019-11-26 18:08:17 +00:00 committed by GitHub
commit 9b8cb3126e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
## `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.

View File

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