mirror of
https://github.com/ctruLua/ctrulua.github.io.git
synced 2025-10-27 08:29:31 +00:00
23 lines
381 B
HTML
23 lines
381 B
HTML
---
|
|
layout: post
|
|
title: "TEST"
|
|
date: 2015-10-23 00:00:00
|
|
categories: status
|
|
---
|
|
|
|
<pre><code>local ctr = require("ctr")
|
|
local gfx = require("ctr.gfx")
|
|
local hid = require("ctr.hid")
|
|
|
|
while ctr.run() do
|
|
hid.read()
|
|
local keys = hid.keys()
|
|
if keys.held.start then break end
|
|
|
|
gfx.startFrame(gfx.GFX_TOP)
|
|
gfx.text(2, 2, "TEST")
|
|
gfx.endFrame()
|
|
gfx.render()
|
|
end
|
|
</code></pre>
|
|
|