Last active
February 9, 2023 08:43
-
-
Save comdet/43884551c60256df53495352e3e7f75c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local tobectrl = { | |
["base_type"] = "gpio-output", | |
["pin"] = 4 | |
} | |
sys.timerLoopStart(function() | |
log.info("test test") | |
sensors.control(tobectrl, 1) | |
sys.wait(2000) | |
sensors.control(tobectrl, 0) | |
sys.wait(2000) | |
end,1000) | |
sys.taskInit(function() | |
while true do | |
local my_string = "abcdefghijklmnopqrstuvwxy" | |
print(my_string:swapPair(3)) | |
sys.wait(5000) | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment