Commit Graph

180 Commits (ad9574f355c5281637fe4478011097a270481264)

Author SHA1 Message Date
Caemor 4ccbea5607 Add Example to quick refresh trait 2021-01-27 17:34:39 +01:00
Chris 4d2b6a5685
Merge pull request #62 from David-OConnor/partial-refresh
Added QuickRefresh trait, and implemented it for 4.2 display
2021-01-27 17:08:57 +01:00
Caemor d572ef0f5d test it 2021-01-23 16:50:55 +01:00
Caemor 1a612c92d3 Fix missing Eq for OutofColorRangeParseError 2021-01-23 16:23:36 +01:00
Caemor bccfc81b13 Improve Stuff mentioned by clippy:
- use range.contains instead of >=  && <=
- Use better error type
2021-01-23 14:55:03 +01:00
David-OConnor 0695e94670 Removed example that broke CI 2021-01-21 21:29:37 +04:00
David-OConnor c30d213bc5 Added QuickRefresh trait, and implemented it for 4.2 display 2021-01-21 21:13:13 +04:00
Mitch Souders e49e144a34 Minor fixups 2020-11-19 19:22:41 -08:00
Mitch Souders e225464b62 Cargo fmt 2020-11-15 18:11:58 -08:00
Mitch Souders 231cc63009 Minor cleanup, added HiZ as color 2020-11-15 17:57:40 -08:00
Mitch Souders c7d32ca86e Added some busy checks and seem to be avoiding missing pictures 2020-11-15 05:32:17 -08:00
Mitch Souders 96d505647d Add support for ep5in65f 2020-11-15 03:25:10 -08:00
Robin Appelman 674b88e327 use correct 7in5_v2 reset delay, not the b/c variant 2020-10-19 16:53:17 +02:00
Robin Appelman 5cb7de5929 make reset timing device specific
reset timings seem to be device specific, trying to reset the 7in5_v2 with timings from other devices does not reset the display.

Timings taken from https://github.com/waveshare/e-Paper/blob/master/RaspberryPi%26JetsonNano/python/lib/waveshare_epd
2020-10-17 17:13:38 +02:00
Marc Poulhiès 27e367c89c Initial support for Waveshare 2in13 v2 e-ink screen
This initial support covers both the full (slow) update of the display and the
partial (fast) update.
2020-10-05 20:48:02 +02:00
Marc Poulhiès 82b8c98538 Better handling for screen size not divisible by 8
Screen with width not divisible by 8 require special care when allocating the
buffer and when handling rotation.

Define a function for getting the needed buffer size (round up to next byte).
Change how rotation is done by changing coordinates instead of direct pixel
access.
2020-09-27 19:13:35 +02:00
Michael Beaumont 9167c643f9
Add epd2in9bc to README, add example 2020-03-27 21:46:32 +01:00
Michael Beaumont b5e647b0d0 Rename red to chromatic, rename epd2in9b to epd2in9bc 2020-03-27 19:09:12 +01:00
Michael Beaumont 7a5472f73a
Update epd2in9b after embedded-graphics update 2020-03-27 18:50:33 +01:00
Michael Beaumont 71d539eeb7
Merge remote-tracking branch 'upstream/master' into epd2in9b 2020-03-27 18:47:13 +01:00
Caemor 409676423d Mainly improved Documenation 2020-03-26 19:55:17 +01:00
Caemor dcc264c2b0 Replace tabs with spaces 2020-03-26 17:19:55 +01:00
Michael Beaumont 20a01a25bf
Add epd2in9b support 2020-03-25 22:56:34 +01:00
Caemor ec72357b55 Update/Include new update_and_display trait 2020-03-22 00:42:20 +01:00
Caemor 8da294dd5e Update embedded-graphics,
remove useless Featuregates (Doesn't change size)

Update and integrate a few important examples and remove the others
2020-03-21 23:37:27 +01:00
Caemor dcaed6fb3e Update embedded-graphics and update epd4in2-blue-pill-exampleg 2020-03-18 14:30:40 +01:00
Christoph Grabo 4ecee29641
Apply cargo fmt 2020-01-11 13:17:47 +01:00
Christoph Grabo 35291fe639
Add V2 version of epd7in5 2020-01-11 13:17:46 +01:00
Christoph Grabo f17cae8e49
Add new optional extention trait 2020-01-11 10:21:51 +01:00
Christoph Grabo a9f27e51ae
Use embedded_hal::digital::v2 (v1 is deprecated) 2020-01-11 10:12:15 +01:00
Johan Kristell 8f89ade010 cargo fmt 2019-12-28 09:13:40 +01:00
Johan Kristell 435cfd9a1c Rename trait and method and doc update 2019-12-28 09:12:53 +01:00
Johan Kristell b170e34028 Add documentation 2019-12-26 12:44:42 +01:00
Johan Kristell d0b7f162fe Add support for the epd1in54b display 2019-12-13 10:08:19 +01:00
Jack Grigg c049b0a9f4
EPD7in5 support 2019-11-15 23:58:07 +00:00
dbr 3e56353cb6 embedded-graphics 0.5.0 removed the with_ prefix from some methods
with_stroke() to stroke()
with_fill() to fill()
with_style() to style()
2019-08-17 09:31:58 +09:30
dbr 99b4cff362 draw_helper takes IntoIterator
Update other display types
2019-08-16 23:59:58 +09:30
dbr f96caeb419 Update for embedded-graphics 0.5.2 2019-08-11 11:01:12 +09:30
Chris 7b4a7f0578
v0.3.2 - some timing fixes (#29)
* Fixed some missing wait_until_idle calls
* prepared release of 0.3.2
* cargo fmt

This is known to fail on travis because it uses the deprecated old digital v1 embedded hal pins
2019-06-17 10:33:20 +02:00
Chris 34c03c5486 Fixed forgotten fmt 2019-04-06 08:56:48 +02:00
Chris 63321f7e2c Fix: Timing Issues after display_frame
epd1in54 and epd2in9 were both missing a necessary wait_until_idle call at the end of their display_frame function which sometimes caused invalid/ignored commands/inputs afterwards.
2019-04-06 08:52:42 +02:00
Chris 47af2fc664
Make a few small updates to support TeXitoi rusty clock (#27)
- add a feature gated alternative full lut for type_a displays
- remove pub from set_lut_helper function
- fix behaviour of set_lut for epd2in9. it always sets the LUT now!
-  better comments
2019-04-04 23:23:48 +02:00
Chris 5c0744ff01
Various improvements (#25)
- Added is_busy to Waveshare_Interface
- Added IS_BUSY_LOW const for all supported epds
- Added is_busy to DisplayInterface
- moved width, height and default_background_color directly to epd4in2 module
- Added VarDisplay (a variable buffersize display/graphic driver)
- Removed all Buffers (Buffer1in54,...) and instead made specialised Displays (Display1in54,...) with included Buffers
- Updated and added more examples
- Cargo fmt/clippy
- Improved Docs/Readmes
2019-03-06 11:48:05 +01:00
Chris d7f3cdca97
Edition 2018 (#24)
* "cargo fix --edition" for the library

* Switch to 2018 edition

* Use cargo fix edition-idioms and remove the internal renaming from embedded_hal to hal

* Updated Readme

* run cargo fmt
2019-02-22 11:23:28 +01:00
Chris b9395b5eff Prepare release
- fix cargo fmt error
- rename forgotten stuff
2018-11-06 15:50:47 +01:00
Chris ebb33661c3 cleanup of a few tested/resolved todos 2018-11-06 13:16:57 +01:00
Chris 2796d875f5 Add rustfmt::skip to constants and graphics::rotation 2018-11-06 09:03:19 +01:00
Chris e518265273 Run cargo fmt (reverted for constants and some graphic calculations) 2018-11-05 15:31:52 +01:00
Chris 375adf4bff Use `data_x_times` instead of big u8-slice 2018-10-30 15:28:34 +01:00
Chris e76a2c45f8 Use data_x_times instead of big buffers 2018-10-30 15:04:47 +01:00