Commit Graph

23 Commits (27e367c89c447283d6646ee77fe4af674785be75)

Author SHA1 Message Date
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.
3 years ago
Caemor 409676423d Mainly improved Documenation 3 years ago
Caemor dcaed6fb3e Update embedded-graphics and update epd4in2-blue-pill-exampleg 3 years ago
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()
4 years ago
dbr 99b4cff362 draw_helper takes IntoIterator
Update other display types
4 years ago
dbr f96caeb419 Update for embedded-graphics 0.5.2 4 years ago
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
4 years ago
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
4 years ago
Chris 2796d875f5 Add rustfmt::skip to constants and graphics::rotation 4 years ago
Chris e518265273 Run cargo fmt (reverted for constants and some graphic calculations) 4 years ago
Chris 22e3ee22b2 Include `set_lut` in WaveshareDisplay Trait 4 years ago
Chris f039b1f6a4 Improve documentation 5 years ago
Chris 697a781ff2 Remove more or less duplicate test cases for 2in9 buffer 5 years ago
Chris efa5591788 Added some comments to the previous commit 5 years ago
Chris 824735fb64 Fix error where pixel outside display lead to early return instead of just skipping that pixel 5 years ago
Chris 520317f351 Fixed examples and more small improvements 5 years ago
Chris 3b0b5962ec Streamline a few things 5 years ago
Chris a1adeb77a4 more changes to the displaydimension trait 5 years ago
Chris a832ab9fed add more changes 5 years ago
Chris f6a894c5a3 use generalised graphics with new specialised buffers 5 years ago
Chris 1baf35c1a4 Forgotten files in previous commit 5 years ago
Chris 139096297b Generalise graphics once more
Change u16 positions to u32 to adapt to embedded graphics unsigned coordinates

Furthermore added epd4in2 defaults graphics buffer
5 years ago
Chris 8922707bac Renamed drawing to graphics and extracted display-specific stuff into the display folders 5 years ago