expansion.lua

local devices = otii.get_devices("Arc")
assert(#devices > 0, "No available devices")
local box = otii.open_device(devices[1].id)
assert(box ~= nil, "No available otii")

box:set_adc_resistor(0.01)

box:set_exp_voltage(3.3)
box:enable_uart(true)
box:enable_exp_port(true)

box:set_gpo(1, box:get_gpi(1))
box:set_gpo(2, box:get_gpi(2))

box:close()
generated by LDoc 1.4.6 Last updated 2021-10-13 21:46:39