Commit Graph

16 Commits (a151aebabeea800d078ce1ac19b8876594f7b39f)

Author SHA1 Message Date
Brian Charous 55d75a38ed
inky: Add Impression 7.3 Spectra6 support (#110)
* add inky impression 7.3 spectra6 support

* run go generate
11 months ago
Brian Charous 4c7310e315
support 7-color inky impression 7.3 detect opts (#107) 1 year ago
gsexton 6b31587b4f
inky: Fix Impression Driver (#106)
*Changed the SPI CS pin to work under automatic or manual control. This allows it to work when CS is controlled by SPI, or when it is controlled manually. We don't want it to fail in the configuration the Pimoroni python driver requires.
*Changed the wait() routine to use a 10ms debounce on WaitForEdge() as the python driver does.
*If the BUSY line is high on entry to wait to go directly to a timed wait as the python driver does.
*Fixed errors in the palette definitions. Removed extra memory allocation.
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