for pin in pairs(devices) do
myTimer = tmr.create()
tmr.alarm(myTimer, 5000, tmr.ALARM_SINGLE, function(myTimer, pin) print(pin) end)
end
Do I have to have a separately hardcoded timer for each pin, or can I do this in a way that lets me assign pins somewhere else, and dynamically create timers for them?