forked from MetaWatchOpenProjects/MWM-for-Android-Gen1
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMW_v0.2.4b_APK_API.txt
45 lines (29 loc) · 1.12 KB
/
MW_v0.2.4b_APK_API.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Handled:
org.metawatch.manager.NOTIFICATION
"array" - int[96*96]
or
"buffer" - byte[96*96/8] // encoded buffer
--
"vibrate_on" - int // ms
"vibrate_off" - int // ms
"vibrate_cycles" - int
--
- text: Displays text on the digital watch. (digital only, untested)
- oled1: Displays large text on the top OLED. (analog only)
- oled1a: Displays small text on the upper half of the top OLED (analog only)
- oled1b: Displays small text on the lower half of the top OLED (analog only)
- oled2: Displays large text on the bottom OLED. (analog only)
- oled2a: Displays small text on the upper half of the bottom OLED (analog only)
- oled2b: Displays small text on the lower half of the bottom OLED (analog only)
org.metawatch.manager.APPLICATION_UPDATE
"array" - int[96*96]
or
"buffer" - byte[96*96/8] // encoded buffer
org.metawatch.manager.APPLICATION_START
org.metawatch.manager.APPLICATION_STOP
org.metawatch.manager.IDLE_BUTTONS_OVERRIDE
"buttons" - byte[] // buttons to override
Broadcasted:
org.metawatch.manager.BUTTON_PRESS
"button" - byte
"mode" - String // ("application", "idle")