Commit Graph

146 Commits (a280a1217060160ad773d65a8379a69138eac138)

Author SHA1 Message Date
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
Chris 22e3ee22b2 Include `set_lut` in WaveshareDisplay Trait 2018-10-30 14:56:38 +01:00
Chris a7d0f13d13 Fix clippy lints 2018-10-30 10:42:56 +01:00
Chris 91d7a7862a improved docs for 2in9 2018-10-24 14:07:35 +02:00
Chris 0204e72cb5 Some last doc changes 2018-10-23 22:14:11 +02:00
Chris 3fc25d71e5 Improved Documentation 2018-10-23 16:41:59 +02:00
Chris f039b1f6a4 Improve documentation 2018-10-22 16:16:48 +02:00
Chris 598a6924ea Cleanup of color-module and removal of old drawing module 2018-10-22 15:55:52 +02:00
Chris 697a781ff2 Remove more or less duplicate test cases for 2in9 buffer 2018-10-22 15:43:50 +02:00
Chris efa5591788 Added some comments to the previous commit 2018-10-22 13:10:24 +02:00
Chris 824735fb64 Fix error where pixel outside display lead to early return instead of just skipping that pixel 2018-10-22 13:06:24 +02:00
Chris 520317f351 Fixed examples and more small improvements 2018-10-19 17:00:15 +02:00
Chris 3b0b5962ec Streamline a few things 2018-10-19 16:26:31 +02:00
Chris a1adeb77a4 more changes to the displaydimension trait 2018-10-19 16:16:43 +02:00
Chris a832ab9fed add more changes 2018-10-19 16:12:22 +02:00
Chris f6a894c5a3 use generalised graphics with new specialised buffers 2018-10-19 15:55:18 +02:00
Chris 1baf35c1a4 Forgotten files in previous commit 2018-10-19 14:37:41 +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 9289d689b7 Fix epd1in54 example, test if old bugs are fixed 2018-10-19 11:27:16 +02:00
Chris 8922707bac Renamed drawing to graphics and extracted display-specific stuff into the display folders 2018-10-19 10:59:26 +02:00
Chris b7275198e1 remove another dublicate test case 2018-10-19 10:14:36 +02:00
Chris a522375695 Clean up and removal of a few fixed todos 2018-10-19 09:58:52 +02:00
Chris 0fc3b5da18 seperate drawing impl in multiple functions for better test coverage 2018-10-19 08:46:15 +02:00
Chris e21dbfb7e3 Removed duplicate test (from color) 2018-10-19 08:21:59 +02:00
Chris 591d25f74a reverse color change 2018-10-18 22:58:34 +02:00
Chris dadc302945 test inverse color matching once more 2018-10-18 22:52:54 +02:00
Chris b9a833ec5f Revert "inverse the colors"
This reverts commit 7dd826795a.
2018-10-18 22:30:49 +02:00
Chris 7dd826795a inverse the colors 2018-10-18 22:27:13 +02:00
Chris 2a3b10ba94 Don't make expensive calculations if pixel is outside the display and return early 2018-10-18 17:02:55 +02:00
Chris dbdb8912a8 cleanup 2018-10-18 16:22:44 +02:00
Chris 08457e503d Use the fixed embedded graphics lib once more 2018-10-18 16:20:39 +02:00
Chris 17abcc74b0 Merge branch 'add_embedded_graphics' of github.com:Caemor/eink-waveshare-rs into add_embedded_graphics 2018-10-18 16:10:10 +02:00
Chris e17697cfb1 Fix missing std-lib in a test 2018-10-18 16:09:23 +02:00
Chris 2fb19b2df9 added many tests to drawing 2018-10-16 23:28:39 +02:00
Chris d2a47eb05c Rename Buffer Trait to Display and add a Rotation Function to it 2018-10-16 22:11:25 +02:00