Commit Graph

8 Commits (5be4808b39caa757ed85e8ab492aef23ac2c7113)

Author SHA1 Message Date
Çağlar Onur 89a9731dff
inky: fix blend precision, height quirk, and minor cleanups
- Fix color blending truncation in blend(): compute the full weighted
    sum as float64 before casting to uint8, avoiding double truncation
  - Fix UC8159 on IMPRESSION57 incorrectly reporting height as 447;
    correct it to 448 in DetectOpts
  - Add Opts.String() for human-readable option printing
  - Refactor update() if/else chain to a switch statement
  - Add TestDevImpression_BlendPrecision to cover the blend fix

Signed-off-by: Çağlar Onur <caglar@10ur.org>
3 weeks ago
Brian Charous 55d75a38ed
inky: Add Impression 7.3 Spectra6 support (#110)
* add inky impression 7.3 spectra6 support

* run go generate
12 months 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é f007d15374
inky: improve godoc (#94)
Add godoc links to ease discovery.
1 year 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