模块 norns

系统工具

函数

none () 什么都不做。
blank () 绘制空白屏幕。
shutdown () 关机
system_cmd (cmd, callback) 将命令添加到队列
system_glob (pattern) 查找匹配模式的路径名
rerun () 重新运行当前脚本

字段

platform 平台检测 0 = 未知 1 = 其他 2 = CM3 (norns) 3 = PI3 (norns shield)
is_norns 如果我们在norns (CM3)上运行则为true
is_shield 如果我们在norns shield (PI3)上运行则为true


函数

none ()
什么都不做。
blank ()
绘制空白屏幕。
shutdown ()
关机
system_cmd (cmd, callback)
将命令添加到队列

参数:

  • cmd string 要执行的shell命令
  • callback 可选 func 命令完成后将使用命令的输出调用回调。 如果回调为nil,则改为打印输出。
system_glob (pattern)
查找匹配模式的路径名

参数:

返回:

    {string,...} 匹配路径名的表
rerun ()
重新运行当前脚本

字段

platform
平台检测 0 = 未知 1 = 其他 2 = CM3 (norns) 3 = PI3 (norns shield)
is_norns
如果我们在norns (CM3)上运行则为true
is_shield
如果我们在norns shield (PI3)上运行则为true
由 LDoc 1.5.0 生成 最后更新 2025-04-06 15:35:25