A clock might end up looking like this:
var layout = { type: "v", content: [ {type:"txt", font:"30%", label:"12:00"}, {type:"txt", font:"6x8", label:"Date"}, ] }; function draw() { var d = new Date(); layout.content[0].label = require("locale").time(d,1); layout.content[1].label = require("locale").date(d); Layout.clear(layout); Layout.update(layout); Layout.render(layout); } g.clear(); draw(); setInterval(draw, 60000);
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
A clock might end up looking like this: