Is my second code block the only way to do it then?
More or less, yes... You need the actual text require("FontTeletext10x18Mode7") in the code. You could do [require("FontTeletext10x18Mode7"), ...] and so on though.
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.
More or less, yes... You need the actual text
require("FontTeletext10x18Mode7")
in the code. You could do[require("FontTeletext10x18Mode7"), ...]
and so on though.