Commit Graph
100 Commits
Author SHA1 Message Date
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 91b723d30e Merge pull request #23 from caemor/test-codecov
test codecov
2019-01-15 13:40:05 +01:00
Chris 72345b2bb9 Merge pull request #22 from therealprof/patch-1
Fix repository name on crates.io
2018-11-21 10:42:23 +01:00
Chris 101c8b897b Merge pull request #21 from caemor/v0.2-cleanup
Cleanup for v0.2
2018-11-06 18:24:57 +01:00
Chris 68cd8006dc Fix wrongly named dep in examples 2018-11-06 17:40:34 +01:00
Chris 63d1de0417 Merge pull request #20 from Caemor/update-linux-embedded-hal
Update to linux-embedded-hal v0.2.1 and remove hackinputpin
2018-10-30 11:25:46 +01:00
Chris 3090637546 Remove stm32f3 until InputPin is supported 2018-10-26 13:44:18 +02:00
Chris ad76027709 Merge pull request #16 from Caemor/add_embedded_graphics
Add embedded graphics supports
2018-10-24 16:37:37 +02:00
Chris 5b2996d73a Fixed broken link 2018-10-24 14:09:39 +02:00
Chris 91d7a7862a improved docs for 2in9 2018-10-24 14:07:35 +02:00
Chris f06b672899 add a empty screen first 2018-10-24 08:11:10 +02:00
Chris c98c058c5a Add 2in9 example 2018-10-23 23:15:23 +02:00
Chris 0204e72cb5 Some last doc changes 2018-10-23 22:14:11 +02:00
Chris bfafb8b058 make the quick example faster 2018-10-23 16:47:00 +02:00
Chris ea1843f506 Add a quick lut example 2018-10-23 16:42:14 +02:00
Chris 3fc25d71e5 Improved Documentation 2018-10-23 16:41:59 +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 bbdecdb6f7 Update documenatation 2018-10-19 09:47:36 +02:00
Chris 0b77b069a4 improve moving hello world in example 2018-10-19 09:19:36 +02:00
Chris b3c41b0e7f improve example 2018-10-19 09:17:37 +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 5fbf91216c embedded graphics should be fixed now 2018-10-19 07:59:53 +02:00
Chris c145300c5d try crates.io version once more 2018-10-18 23:51:37 +02:00
Chris a29e6530b4 check upstream/master 2018-10-18 23:49:41 +02:00
Chris 529b58cd74 test if there was really a change or if the upload to crates.io was broken 2018-10-18 23:47:12 +02:00
Chris e1b76c73a3 test branch of embedded-graphics 2018-10-18 23:15:14 +02:00
Chris a75a9b74bd add anotherline to example 2018-10-18 22:59:53 +02:00
Chris 591d25f74a reverse color change 2018-10-18 22:58:34 +02:00
Chris 9d6a009f49 forgot semicolon 2018-10-18 22:55:42 +02:00
Chris 33ebb1e4f7 reduce loop 2018-10-18 22:54:57 +02:00
Chris b5dcbb0454 fix example 2018-10-18 22:53:41 +02:00
Chris dadc302945 test inverse color matching once more 2018-10-18 22:52:54 +02:00
Chris 1acdd8d107 add a line through the big font 2018-10-18 22:44:03 +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 967c67f9a6 position font elsewhere 2018-10-18 22:21:44 +02:00
Chris 73115fd0f3 tes 2018-10-18 22:19:36 +02:00
Chris 4ff373f512 add different style to rotate90 in example 2018-10-18 22:06:47 +02:00
Chris a68ddb673a add some lines to the rotations 2018-10-18 21:54:52 +02:00
Chris 8db42f7ec7 find error 2018-10-18 21:39:33 +02:00
Chris 90ff523411 simplify example 2018-10-18 21:17:56 +02:00
Chris d37ffd5489 test patch 2018-10-16 23:55:27 +02:00
Chris cc2d09f4aa try fixed embedded_graphics version 2018-10-16 23:49:21 +02:00
Chris dd70d02eb7 use style instead of with_stroke 2018-10-16 23:36:17 +02:00
Chris 4ca0321573 added rotation examples 2018-10-16 23:28:51 +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
Chris 8904066de6 Moved constants of type_a to its own file 2018-10-16 21:43:27 +02:00
Chris ff21d6e611 add impl Drawing<Color> for DisplayEink42BlackWhite
fix error by using option for style
2018-10-16 18:33:06 +02:00
Chris e92af2198a Fix previous commit 2018-10-16 18:26:29 +02:00
Chris 533cb84123 Make lines visible 2018-10-16 18:24:14 +02:00
Chris d65cf0c578 Merge branch 'master' into add_embedded_graphics 2018-10-16 18:18:32 +02:00
Chris fe97740f04 Fix example 2018-10-16 18:13:43 +02:00
Chris 2bab732b6f use new graphics in example 2018-10-16 18:08:43 +02:00
caemor e30cb6f7e8 Make Enum DisplayRotation, impl Buffer and Drawing for 4in2 display 2018-10-14 23:18:47 +02:00
Chris b9430236e7 Merge pull request #14 from Caemor/fix-os-90-spi-message-on-linux-too-long
Set spi chunk limit on linux with cfg! to fix error
2018-10-14 13:52:27 +02:00
caemor 3196c4b387 fix embedded_graphics include 2018-10-14 12:38:56 +02:00
caemor c16e136d09 fix 2018-10-14 12:38:11 +02:00
caemor 8d08bef233 add embedded_graphics 2018-10-14 12:36:54 +02:00
Chris a079653a26 Change example 2018-10-11 10:10:24 +02:00
Chris 468425881c readd data_x_times 2018-10-11 00:33:44 +02:00
Chris 98e392fff1 changed example 2018-10-11 00:21:12 +02:00
Chris 0571ab4a34 final fix 2018-10-11 00:11:15 +02:00
Chris 81710bfc50 fix small example 2018-10-11 00:05:56 +02:00
Chris aa7497fa60 Still trying to fix an error 2018-10-10 21:30:22 +02:00
Chris 2e4ee5308a remove error in previous commit 2018-10-10 21:11:05 +02:00
Chris 4155bd616b add error messages for debugging 2018-10-10 20:58:05 +02:00
Chris 16686dee6d example change 2018-10-10 20:55:05 +02:00
Chris b7fe5674ee send full buffer instead of loop 2018-10-10 20:37:39 +02:00
Chris 526db5dace Extend error message in example 2018-10-10 20:31:14 +02:00
Chris d0ac29ed90 print error in example instead of quitting 2018-10-10 20:26:59 +02:00
Chris 2e2e70c59c Merge pull request #12 from Caemor/Cleanup-Interface
[WIP] Cleanup interface
2018-10-10 20:12:55 +02:00
Chris e489b7af30 Merge pull request #10 from Caemor/STM32F3DISCOVERY-Beispiel
Added example and tests for stm32f3discovery 

Added an example for stm32f3discovery, which also adds automatic (via travis) build tests for the stm32f3
2018-10-10 11:40:59 +02:00
Chris 632f4932ad Merge pull request #8 from Caemor/size_testcase
Adds testcases for the sizes of the displays and default backgroundcolor
2018-10-09 14:42:42 +02:00
Chris 3c3f29aa98 Merge pull request #7 from Caemor/try_rustfmt
Formating and other beautifying improvements including some rustfmt changes
2018-08-13 08:23:31 +02:00
Chris e5a1e3bf25 Merge pull request #6 from Caemor/add_1in54-epd
Add support for  1in54 epd
2018-08-07 10:26:29 +02:00
Chris 4feeecf444 Update README.md
Updated readme to represent the current status of the project better
2018-08-03 09:30:41 +02:00
Chris 7b9f742f2e add support checkmark for 2.9 epd 2018-07-24 10:05:53 +02:00
Chris f76227a861 Merge pull request #5 from Caemor/better_readme
Better readme
2018-07-23 15:14:26 +02:00
Chris 20a4b9ef84 Merge pull request #4 from Caemor/fast_update_feature_gated
Fast update feature gated
2018-07-23 14:55:08 +02:00
Chris 0a18416da7 Merge pull request #3 from Caemor/add_2in9_device
Add support for 2in9 waveshare epaper
2018-07-23 11:21:25 +02:00
Chris 1568cc2890 Merge pull request #1 from Caemor/graphics_buffer
Added mutable reference to buffer directly in graphics.
2018-05-30 15:01:30 +02:00
Chris 3fa576732c Merge branch 'master' of github.com:Caemor/eink-waveshare-rs 2018-05-28 16:57:44 +02:00
Chris f8f6b05e72 Documented broken char and string drawing 2018-05-28 00:38:35 +02:00
Chris 81966846ba reversed the wrong change of state 2018-05-28 00:32:31 +02:00
Chris e56753c677 make draw_string accept string slices instead of char slices 2018-05-28 00:20:10 +02:00
Chris 869866d997 for further testing purposes, draw_byte is still not stable 2018-05-28 00:18:38 +02:00
Chris 38a400a83f added fonts and chars, but more improvement is needed there 2018-05-27 22:03:26 +02:00