加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
doc.go 489 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hugo Arganda 提交于 2015-07-04 00:41 . Code merge and doc update
/*
Golang package for serial port
A Go package that allow you to read and write from the serial port.
This is a forked repo written by [@tarm](github.com/tarm).
Example usage:
package main
import (
"time"
"github.com/argandas/serial"
)
func main() {
sp := serial.New()
err := sp.Open("COM1", 9600)
if err != nil {
panic(err)
}
defer sp.Close()
sp.Println("AT")
sp.WaitForRegexTimeout("OK.*", time.Second * 10)
}
*/
package serial
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化