2020-03-05 05:48:50 +00:00
|
|
|
/* jshint esversion: 6 */
|
2020-03-04 19:59:27 +00:00
|
|
|
(() => {
|
2020-03-05 05:50:32 +00:00
|
|
|
var xpos = WIDGETPOS.tr - 16;
|
|
|
|
WIDGETPOS.tr -= 16;
|
|
|
|
id = NRF.getAddress().split(":");
|
2020-03-04 19:59:27 +00:00
|
|
|
|
2020-03-05 05:50:32 +00:00
|
|
|
// draw your widget at xpos
|
|
|
|
function draw() {
|
|
|
|
var x = xpos,
|
|
|
|
y = 0;
|
2020-03-05 08:27:49 +00:00
|
|
|
g.reset().setColor(0, 0.5, 1).setFont("6x8", 1);
|
2020-03-05 05:50:32 +00:00
|
|
|
g.drawString(id[4], x, 0, true);
|
|
|
|
g.drawString(id[5], x, 10, true);
|
|
|
|
}
|
|
|
|
WIDGETS["widid"] = { draw: draw };
|
|
|
|
})();
|