Commit Graph

32 Commits (632a4b65b660503482285d071be5448cc54f6741)

Author SHA1 Message Date
Marc-Antoine Ruel cfbbeedbcb README: update badge 5 years ago
Marc-Antoine Ruel 4b2f290e0a README.md: move links above the mascot
Otherwise they don't show up on pkg.go.dev.
5 years ago
Marc-Antoine Ruel 402bbcc930 Migrate to devices/v3
Ran:
  git ls-files -z -- . | xargs -0 -L 1 sed -i 's#periph\.io/x/conn#periph.io/x/conn/v3#g'
  git ls-files -z -- . | xargs -0 -L 1 sed -i 's#periph\.io/x/host#periph.io/x/host/v3#g'
  git ls-files -z -- . | xargs -0 -L 1 sed -i 's#periph\.io/x/devices#periph.io/x/devices/v3#g'
  go test ./...
  go mod tidy
5 years ago
Marc-Antoine Ruel dbc4b06abe Add a few things
- Update README.md to point at the right place.
- Add github actions.
- Add codecov.yml because the codecov.io defaults are not great.
5 years ago
Marc-Antoine Ruel 655d1cef69 Update import path to what devices will be
Also update imports to conn and host.

Ran (roughly):
  # Update the references.
  git ls-files -- . | xargs -L 1 sed -i 's#x/periph/conn#x/conn#g'
  git ls-files -- . | xargs -L 1 sed -i 's#x/periph/experimental/conn#x/conn#g'
  git ls-files -- . | xargs -L 1 sed -i 's#x/periph/host#x/host#g'
  git ls-files -- . | xargs -L 1 sed -i 's#x/periph/experimental/host#x/host#g'
  git ls-files -- . | xargs -L 1 sed -i 's#x/periph/devices#x/devices#g'
  git ls-files -- . | xargs -L 1 sed -i 's#x/periph/experimental/devices#x/devices#g'

  # Initialize the go module:
  go mod init periph.io/x/devices

  # Edited it to require go 1.13:
  vi go.mod

  # Reorder imports.
  goimports -w .
5 years ago
Marc-Antoine Ruel c0f73d6f9a Use timeTicker instead of Sleep
This encourages cleaner implementation
8 years ago
Marc-Antoine Ruel 1f328237e7 README.md: add slack, remove gitter
The gitter channel is not used much.

Add a title for the example to state what it does, since it may not be obvious
for everyone.
8 years ago
Marc-Antoine Ruel 502fbee137 Remove the warning in README.md about versioning.
Now that v1.0.0 is being released and will use a proper versioning mechanism,
there's no need for this warning.

Clients will be able to use http://github.com/golang/dep to version this
library.
9 years ago
Marc-Antoine Ruel 3af6409eeb README.md: add warning about breaking changes 9 years ago
Marc-Antoine Ruel 9dfa0dc52f Update link 9 years ago
Marc-Antoine Ruel bdefda99fb Add gitter.im chat room badge 9 years ago
Marc-Antoine Ruel edc050f0a7 Add mascot 9 years ago
Marc-Antoine Ruel 0c585b510a travis: Expose test failure, install missing packages
Add badges.
9 years ago
Marc-Antoine Ruel f1d8127e0b Rename sample to example.
See 96b661173e
9 years ago
Marc-Antoine Ruel 39aa0b9373 Update links without /doc/
See cdf3755696
9 years ago
Marc-Antoine Ruel c9298db3b0 Fix issues found by misspell, gofmt -s -w, golint and go vet; add badges
- There were several typos
- Simplified a few simplified statements
- Added doc for a few exported symbols
- Fix incorrect printf usage
9 years ago
Marc-Antoine Ruel 9031234a9b Fix actual link to SAMPLES 9 years ago
Marc-Antoine Ruel 82983adf33 Deep link to samples 9 years ago
Marc-Antoine Ruel a44f3ac129 Tidy up the docs. 9 years ago
Marc-Antoine Ruel 61b5ae730a Migrated documentation to github.com/periph/website 9 years ago
M-A aa4d58cb95 Fix paths and rename all markdown files to README.md (#112)
This simplify the parsing by hugo.

Replace all '*' by '-' because my editor hates stars as list and it's a bad
idea after all.
9 years ago
M-A b52a4b9f1d Make markdown files more compatible (#111)
Certain parser requires empty line above the first list item to be recognized as
a list.

Update gohci URL.
9 years ago
M-A bbcd750d5b Replace github.com/google with periph.io/x (#110)
This makes periph.io/x/periph as the repository root so it is not tied to the
Google organisation anymore.
9 years ago
M-A 77cb166f25 Fix the front page sample to be less cryptic. (#92)
The example made it look like the user had to use global variables, which may
cause a poor first time impression. Make it clear that there is multiple ways to
access a pin.
10 years ago
M-A b9bc3713f7 Improve documentation. (#90)
Add "Features"
Drastically shorten the sample on the home page.
10 years ago
M-A 0075d9e849 Increase polish. (#75)
- Make error more consistent and more helpful. Not all errors are wrapped yet
  but a fair part is now.
- Remove the 'first' pattern in i2c, spi, uart and make it work.
- Add allwinner.Pin.wrap() for coherence with PinPL and bcm283x.Pin.
- headers.All() return a copy.
10 years ago
M-A f7261fe4df doc: add more information about testing. (#69) 10 years ago
M-A 01b45ab697 Add more examples, trim documentation. (#44) 10 years ago
M-A ae8f618573 Rename pio to periph. (#27)
Ran:
    git sed 's/pio/periph/g
    git sed 's/gperiph/gpio/g'
    git sed 's/Gperiph/Gpio/g'
    git sed 's/PIO/Periph/g'
    git sed 's/GPeriph/GPIO/g'
    git mv pio.go periph.go
    git mv pio_test.go periph_test.go
    cd cmd
    git mv pio-info periph-info
    git mv pio-setup periph-setup

where 'git sed' is an alias to run sed over all files in git ls-files.

Fixes #11.
10 years ago
Thorsten von Eicken aa5269b72f fix some documentation text (#19) 10 years ago
M-A 1dea5dac5c doc: add code style, note about lack of affiliation with Go. (#10)
Fixes #7
10 years ago
Marc-Antoine Ruel eb384b9d0c Initial commit of pio.
This was extracted from github.com/maruel/dlibox/go/pio @ f51102b.
This code was written by Marc-Antoine Ruel.
10 years ago