Commit Graph

26 Commits (b0ebc0dbd418e28dc237936e289728e4f8cdb461)

Author SHA1 Message Date
George Sexton 742e8e4240 Fix palettes. Remove unnecessary memory alloc for pixels. 1 year ago
George Sexton e455f8e488 remove redundant code 1 year ago
George Sexton 3037d5a9b6 Remove comment 1 year ago
George Sexton 2da607c499 Fix error 1 year ago
George Sexton 49a6b37ab9 Rework the send commands to be compatible with SPI control of CS, or manual control. 1 year ago
George Sexton b4f2e163f9 Remove manual manipulation of CS since it isn't required. 1 year ago
George Sexton e27ed10928 Add Multi color parsing to types 1 year ago
George Sexton 31fd033457 More lint fixes 1 year ago
George Sexton 405e04ef6e missed handling one error 1 year ago
George Sexton 9f3eb67a7b fix error handling 1 year ago
George Sexton bca1c90b5e Fix incorrect usage. a 'pin number' was passed to port.Connect(), when that parameter is actually the bit count. 1 year ago
George Sexton bc639221ca Fix incorrect usage. a 'pin number' was passed to port.Connect(), when that parameter is actually the bit count. 1 year ago
George Sexton 7e3e54275b Fixes 1 year ago
Olivier Mengué #openToWork-Paris f009056300
inky/impression: embed Dev (#103)
Minor refactor to embed Dev directly instead of via a pointer.
1 year ago
Olivier Mengué #openToWork-Paris 0187bca55f
inky/impression: fix init of bounds (#102)
Fix typo in initialization of bounds when bounds are not explicitely set
by the user.
1 year ago
Filip Stanis eb90d53534
[inky] Add Inky Impression 7.3" support (#75)
* Adds support for Inky Frame 7.3"

Co-authored-by: Olivier Mengué <dolmen@cpan.org>
Co-authored-by: George Sexton <georges@mhsoftware.com>
Co-authored-by: M-A <maruel@gmail.com>
Co-authored-by: Olivier Mengué <dolmen@cpan.org>
1 year ago
Olivier Mengué 321f6f6211
inky: run stringer with "go run" (#95)
Run stringer command (for code generation) using "go run" instead of "go
install" to avoid affecting the developer's global $GOBIN.
1 year ago
Olivier Mengué f007d15374
inky: improve godoc (#94)
Add godoc links to ease discovery.
1 year ago
Marc-Antoine Ruel d18deefcb2 Fix go generate 2 years ago
Çağlar Onur e271f7c07b
[inky] Add Inky Impression 5.7" and 4" support (#55)
It is a 7 colour ePaper/eInk HAT that comes with 5.7" (600 x 448 pixel) or 4" (640 x 400 pixel).

Refactors the existing 3 color Inky and adds additional fields to
auto-detect via EEPROM.

Tested with 5.7" version.
3 years ago
Marc-Antoine Ruel eb0d2cc2b9 Update to go1.17
Update dependencies
Update github actions
Ran gofmt
Fix one gosec warning
4 years ago
Marc-Antoine Ruel a27238ec6e enforce no shadowed variable
Convert a few wrapped error from %v to %w.

This does result in a few awkward cases but the value outweighs the
downsides.
5 years ago
Thereatra 765957cae1
[Inky] autodetect board opts and pHAT v2 support (#12)
* Added support for Inky pHAT v2
* Added support for detecting Inky board. Detect Inky board opts from eeprom, and detect new inky dev with sane default from opts
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 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 1de83694a1 Migrate layout to the destination layout
First I imported the commits from v3.6.6 with:

  PKG=devices
  git init $PKG
  cd $PKG
  git remote add origin https://github.com/google/periph
  git fetch origin
  git filter-repo \
    --path AUTHORS \
    --path CONTRIBUTING.md \
    --path CONTRIBUTORS \
    --path LICENSE \
    --path README.md \
    --path $PKG --path experimental/$PKG $@
  git remote add origin git@github.com:periph/$PKG
  git fetch origin
  # Use the occasion to rename from master to main since we are starting from
  # scratch.
  git branch -m main
  git push origin main

Then I fixed the layout to get rid of experimental with:

  git rm experimental/devices/README.md
  git mv experimental/devices/* .
  git mv devices/* .

The import paths will be fixed in a follow up.
5 years ago