Added screenshots
parent
53cc58845a
commit
f7a3728826
10
apps.json
10
apps.json
|
|
@ -4605,9 +4605,17 @@
|
||||||
"id": "sensible",
|
"id": "sensible",
|
||||||
"name": "SensiBLE",
|
"name": "SensiBLE",
|
||||||
"shortName": "SensiBLE",
|
"shortName": "SensiBLE",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"description": "Collect, display and advertise real-time sensor data.",
|
"description": "Collect, display and advertise real-time sensor data.",
|
||||||
"icon": "sensible.png",
|
"icon": "sensible.png",
|
||||||
|
"screenshots": [
|
||||||
|
{ "url": "screenshot-top.png" },
|
||||||
|
{ "url": "screenshot-acc.png" },
|
||||||
|
{ "url": "screenshot-bar.png" },
|
||||||
|
{ "url": "screenshot-gps.png" },
|
||||||
|
{ "url": "screenshot-hrm.png" },
|
||||||
|
{ "url": "screenshot-mag.png" }
|
||||||
|
],
|
||||||
"type": "app",
|
"type": "app",
|
||||||
"tags": "tool,sensors",
|
"tags": "tool,sensors",
|
||||||
"supports" : [ "BANGLEJS2" ],
|
"supports" : [ "BANGLEJS2" ],
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
0.02: Corrected variable initialisation
|
0.02: Corrected variable initialisation
|
||||||
|
0.03: Advertise app name, added screenshots
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
// Non-user-configurable constants
|
// Non-user-configurable constants
|
||||||
const APP_ID = 'sensible';
|
const APP_ID = 'sensible';
|
||||||
|
const ESPRUINO_COMPANY_CODE = 0x0590;
|
||||||
|
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
|
|
@ -90,6 +91,19 @@ let magMenu = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Transmit the app name under the Espruino company code to facilitate discovery
|
||||||
|
function transmitAppName() {
|
||||||
|
let options = {
|
||||||
|
showName: false,
|
||||||
|
manufacturer: ESPRUINO_COMPANY_CODE,
|
||||||
|
manufacturerData: JSON.stringify({ name: APP_ID }),
|
||||||
|
interval: 2000
|
||||||
|
}
|
||||||
|
|
||||||
|
NRF.setAdvertising({}, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Update acceleration
|
// Update acceleration
|
||||||
Bangle.on('accel', function(newAcc) {
|
Bangle.on('accel', function(newAcc) {
|
||||||
acc = newAcc;
|
acc = newAcc;
|
||||||
|
|
@ -155,6 +169,7 @@ Bangle.on('mag', function(newMag) {
|
||||||
|
|
||||||
// On start: enable sensors and display main menu
|
// On start: enable sensors and display main menu
|
||||||
g.clear();
|
g.clear();
|
||||||
|
transmitAppName();
|
||||||
Bangle.setBarometerPower(isBarEnabled, APP_ID);
|
Bangle.setBarometerPower(isBarEnabled, APP_ID);
|
||||||
Bangle.setGPSPower(isGpsEnabled, APP_ID);
|
Bangle.setGPSPower(isGpsEnabled, APP_ID);
|
||||||
Bangle.setHRMPower(isHrmEnabled, APP_ID);
|
Bangle.setHRMPower(isHrmEnabled, APP_ID);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue