Explorar o código

添加RadioStandby函数

xuxinyi hai 3 meses
pai
achega
34c7fa29f3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drv_periph/radio.lua

+ 1 - 0
drv_periph/radio.lua

@@ -27,6 +27,7 @@ sys.taskInit(function()
     sx126x_driver.RadioSetChannel(433000000) 
     sys.wait(2000)
     while true do
+        RadioStandby()
         sx126x_driver.sentString("hello,My_name_is_XuXinyi\n")
         sys.wait(4000)
     end