greenbreakfast 634b101c64 open sourcing oboo software packages repo | пре 4 година | |
---|---|---|
.. | ||
device | пре 4 година | |
duktape | пре 4 година | |
js | пре 4 година | |
lv_drivers | пре 4 година | |
lvgl | пре 4 година | |
oboo_gui | пре 4 година | |
test | пре 4 година | |
.gitignore | пре 4 година | |
LICENSE | пре 4 година | |
README.md | пре 4 година | |
config.h | пре 4 година | |
img_tiger.bin | пре 4 година | |
img_tiger.c | пре 4 година | |
lv_conf.h | пре 4 година | |
lv_drv_conf.h | пре 4 година | |
main.c | пре 4 година | |
makefile | пре 4 година | |
messageQueue.c | пре 4 година | |
messageQueue.h | пре 4 година | |
runtime.c | пре 4 година | |
runtime.h | пре 4 година |
Display and Card manager for the Oboo Clock running on the Omega2
Display Manager listens to /notification
topic.
To set a notification, send a message to /notification
with the following syntax:
{
"cmd": "set",
"text": "<NOTIFICATION TEXT>",
"size": <FONT SIZE> // OPTIONAL: default is 20
}
To clear a notification, send a message to /notification
like the following:
{
"cmd": "clear"
}
Display manager listens to the /status
topic
To configure a status icon, publish a message to /status
like the following:
{
"cmd":"update",
"elements": [
{
"type": "<STATUS TYPE>", // string
"value": <STATUS VALUE> // integer representing the status
}
]
}
On and off icons, can be set to 0
for off, or 1
for on:
wifi
bluetooth
alarm
Range icons:
battery
0
(empty battery) to 4
(full battery)