Update readme according to godoc

This commit is contained in:
Justin Hammond 2021-10-01 17:02:15 +00:00
parent 93a6a2d26e
commit 1764b52423

View file

@ -1,14 +1,19 @@
# Go-LogAdapter
[![codecov](https://codecov.io/gh/Fishwaldo/go-dcdcusb200/branch/master/graph/badge.svg)](https://codecov.io/gh/Fishwaldo/go-dcdcusb200)
[![GoDoc](https://img.shields.io/badge/pkg.go.dev-doc-blue)](http://pkg.go.dev/github.com/Fishwaldo/go-dcdcusb200)
[![codecov](https://codecov.io/gh/Fishwaldo/go-dcdc200/branch/master/graph/badge.svg)](https://codecov.io/gh/Fishwaldo/go-dcdc200)
[![GoDoc](https://img.shields.io/badge/pkg.go.dev-doc-blue)](http://pkg.go.dev/github.com/Fishwaldo/go-dcdc200)
Package go-dcdcusb interfaces with the DCDCUSB power supply from mini-box ([https://www.mini-box.com/DCDC-USB](https://www.mini-box.com/DCDC-USB))
via USB port and allows you to retrive the status of the power supply
it depends upon GoUSB which in turn depends upon the libusb C library, thus CGO is required for this module
Please see the GoUSB pages for hints on compiling for platforms other than linux
## Please see the GoUSB pages for hints on compiling for platforms other than linux
Building
Compile with the tag nogousb to disable compiling with USB Support. Then the only option available
is a Simulator Mode that replays a previously captured session.
## Sub Packages
@ -19,7 +24,7 @@ Please see the GoUSB pages for hints on compiling for platforms other than linux
```golang
dc := dcdcusb.DcDcUSB{}
dc.Init()
dc.Init(stdlogger.DefaultLogger(), false)
if ok, err := dc.Scan(); !ok {
log.Fatalf("Scan Failed: %v", err)
return