Commit Graph

59 Commits (4b0195f68655897b6d485c3d890b90c76ab5de3f)

Author SHA1 Message Date
James Waples a92eac02a4 Make embedded-graphics a dev dependency
e-g-core should be the only e-g dependency required for the driver
itself, so this PR changes a few of the imports to reflect that.
2021-08-20 18:10:59 +01:00
Reinier Balt 6a10e0cb96 Migrate remaining drivers 2021-06-16 17:36:12 +02:00
Reinier Balt 5622627c1f fix remaining PrimitiveStyleBuilder conversions 2021-06-16 14:53:12 +02:00
Reinier Balt 78ffda673e migrate minimum set of drivers to make tests pass 2021-06-16 13:49:33 +02:00
Caemor 980b2b9667 Merge branch 'fix-70' of https://github.com/olback/epd-waveshare into olback-fix-70 2021-04-18 18:13:40 +02:00
Caemor 15e557951f Further improvements around acronym lowercases,... 2021-04-11 21:21:39 +02:00
Caemor 9d95eeb64b cargo fmt 2021-04-11 20:38:03 +02:00
Caemor ba1b90e2f3 Removed #[allow(non_camel_case_types)] to fix issues 2021-04-11 20:31:24 +02:00
Edwin Svensson c3a4cde815
skip closure/task 2021-04-11 16:57:28 +02:00
Edwin Svensson 04476e6671
fix tests 2021-04-04 22:26:50 +02:00
Edwin Svensson 9a1575b2ec
API change to partially fix #70 2021-04-04 22:10:50 +02:00
Mitch Souders 96d505647d Add support for ep5in65f 2020-11-15 03:25:10 -08: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
Caemor 409676423d Mainly improved Documenation 2020-03-26 19:55:17 +01:00
Caemor ec72357b55 Update/Include new update_and_display trait 2020-03-22 00:42:20 +01:00
Caemor dcaed6fb3e Update embedded-graphics and update epd4in2-blue-pill-exampleg 2020-03-18 14:30:40 +01:00
Christoph Grabo a9f27e51ae
Use embedded_hal::digital::v2 (v1 is deprecated) 2020-01-11 10:12:15 +01: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
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 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 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 22e3ee22b2 Include `set_lut` in WaveshareDisplay Trait 2018-10-30 14:56:38 +01:00
Chris 91d7a7862a improved docs for 2in9 2018-10-24 14:07:35 +02:00
Chris 3fc25d71e5 Improved Documentation 2018-10-23 16:41:59 +02:00
Chris 697a781ff2 Remove more or less duplicate test cases for 2in9 buffer 2018-10-22 15:43:50 +02:00
Chris 520317f351 Fixed examples and more small improvements 2018-10-19 17:00:15 +02:00
Chris 139096297b Generalise graphics once more
Change u16 positions to u32 to adapt to embedded graphics unsigned coordinates

Furthermore added epd4in2 defaults graphics buffer
2018-10-19 14:36:43 +02:00
Chris 8904066de6 Moved constants of type_a to its own file 2018-10-16 21:43:27 +02:00
Chris 89489da657 Renaming of WaveshareInterface and Connectioninterface
WaveshareInterface -> WaveshareDisplay
traits::interface::ConnectionInterface -> interface::DisplayInterface
2018-10-10 17:01:03 +02:00
Chris 87832f6043 Made SPI shareable
Disown spi for better shareabilty
2018-10-10 16:06:27 +02:00
Chris 6a24acf62b Removed data_x_times function 2018-10-10 14:43:18 +02:00
Chris 2f4ebfecab Fix previous Delay Commit
Some stuff was forgotten in the previous commit
2018-10-10 13:45:35 +02:00
Chris fabc5f262e Make delay a function parameter
This change makes delay a function parameter where necessary and stops the need of owning the delay
2018-10-10 13:45:35 +02:00
Chris 1791388a8b Renamed folder `interface` to `traits` 2018-10-10 13:45:34 +02:00
Chris 0ddaf9679a Deletion of single u8 data Transfers and renaming of various functions
command_with_data -> cmd_with_data
command -> cmd
multiple_data -> data
2018-10-10 13:45:34 +02:00
Christoph Groß 80090d8df2 Added testcases for default size and color of the various displays 2018-10-09 09:56:51 +02:00
Christoph Groß fa6bce5ee7 Cleanup of WaveshareInterface
-Removed update_and_display_frame
-removed update_and_display_partial_frame

-Renamed get_width and get_height to just width and height
2018-09-19 16:19:57 +02:00
Christoph Groß e0cf10bf4e Moved Colors into its own module 2018-09-19 11:44:17 +02:00
Christoph Groß cd593c51cb Make the code more readable with a few already introduced adapter functions (e.g. command_with_data) 2018-08-08 15:35:08 +02:00
Christoph Groß 7fa1a27f40 Shortened TypeDefinitions,
made init a private function,
added a crate internal extended waveshareinterface,
added a combined  Connection_interface::data_and_command function,
added a wake_up function,
added a updated_and_display_partial_frame_function
2018-08-08 15:10:51 +02:00
Christoph Groß cd98033204 first steps to rustfmt althought it sometimes doesn#t exactly looks good 2018-08-07 16:00:13 +02:00
Christoph Groß 835e25d133 Used cargo clippy to fix a few bad coding styles 2018-08-06 15:23:21 +02:00
Christoph Groß 5c8972ec46 small epd removel update 2018-08-06 14:54:20 +02:00