1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-08 06:31:14 +02:00
Files
openComputers_codes/definitions/component/os_magreader.d.lua
2023-02-01 21:16:58 +01:00

21 lines
851 B
Lua

---@meta
---@class ComponentOsMagReader : Component
local os_magreader = {}
---Sets the event name returned when you click it with a card, default is magData
---@param eventName string
function os_magreader.setEventName(eventName) end
---Enables/disables automatic lights on the magreader. If true, it will function as it normally does when clicked with a card. If false, you have to call setLightState to change the lights on the magreader. default is true.
---@param enableLights boolean
function os_magreader.swipeIndicator(enableLights) end
---Sets the light state of the magreader. Takes in a number from 0 to 7. default is 0
--- - 1 : red
--- - 2 : yellow
--- - 4 : green
---@param lightState number light state as a binary number (1 : red, 3 red + yellow)
---@return boolean lightChanged
function os_magreader.setLightState(lightState) end