Browse Source

fix: demo/spi里的注释一直写错成串口id

Wendal Chen 11 tháng trước cách đây
mục cha
commit
3faab70b87
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      demo/spi/main.lua

+ 2 - 3
demo/spi/main.lua

@@ -23,10 +23,9 @@ end
 
 
 sys.taskInit(function()
-
     local result = spi.setup(
-        spiId,--串口id
-        nil,
+        spiId,--SPI id
+        nil,--CS脚
         0,--CPHA
         0,--CPOL
         8,--数据宽度