JS: Fix NULL ptr in spi example

not sure why this doesnt work, it worked before
This commit is contained in:
Willy-JL
2024-11-02 23:22:09 +00:00
parent b5ae9387c4
commit 6e454582a4

View File

@@ -8,8 +8,9 @@ let spi = require("spi");
// Display textbox so user can scroll to see all output.
let eventLoop = require("event_loop");
let gui = require("gui");
let textBoxView = require("gui/text_box");
let text = "SPI demo\n";
let textBox = require("gui/text_box").makeWith({
let textBox = textBoxView.makeWith({
focus: "end",
font: "text",
text: text,