Commit Graph

256 Commits (e518265273c8252cc9c04faebdc5c871bb2ead91)

Author SHA1 Message Date
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 f131636b01 Addition to previous commit (examples and forgotten save) 2018-10-10 17:03:18 +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 0363e8527f Adapted examples to previous commit 2018-10-10 16:22:41 +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 99d328575f fix examples 2018-10-10 14:25:15 +02:00
Chris 9ac06ead28 Merge branch 'Cleanup-Interface' of github.com:Caemor/eink-waveshare-rs into Cleanup-Interface 2018-10-10 13:51:00 +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
Chris 829a9e71eb Fix previous Delay Commit
Some stuff was forgotten in the previous commit
2018-10-10 13:30:52 +02:00
Chris 38dc5126ee 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:23:43 +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 6efa864014 Renamed folder `interface` to `traits` 2018-10-10 11:37:36 +02:00
Chris e14c3a5f76 Fix travis build for stm32f3 2018-10-10 09:31:04 +02:00
Chris 7612aad99a 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 09:20:34 +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
Christoph Groß 5b80530ba2 Finished stm32f3disovery example.
This example still needs to be tested on the board
2018-10-09 14:41:26 +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ß 806d9a1e2d Added stm32f3 example,
This is example is missing good usage of the crate,
but before that eh_personality needs to be fixed
2018-09-21 16:38:10 +02:00
Christoph Groß e82df01f34 Updated Travis
- Added 2nd example
- use cargo check instead of cargo build for first fast check
2018-09-19 16:28:41 +02:00
Christoph Groß e4e4cd57d2 Fixed example epd4in2 with missing rename 2018-09-19 16:26:40 +02:00
Christoph Groß 9fc4c0c1c7 Fixed missing renaming of .width() and height() methods 2018-09-19 16:23:41 +02:00
Christoph Groß aa412ba220 Updated Example-Readme 2018-09-19 16:21:01 +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ß b0699b088d Finished the 2nd example which doesn't use the included graphics module 2018-09-19 11:55:48 +02:00
Christoph Groß 493a7bd0c0 Clarified Documentation for clear_frame and sleep 2018-09-19 11:55:19 +02:00
Christoph Groß 6c5220fb07 Added a seperate Readme to the examples and linked it from the main readme 2018-09-19 11:54:18 +02:00
Christoph Groß 9c08d8559e Forgotten parts of the previous commit for adding a graphics feature and using it 2018-09-19 11:48:05 +02:00
Christoph Groß 2cc4bceac3 Featuregate the graphics modules
This commit makes it possible to compile without the included graphics features
2018-09-19 11:46:51 +02:00
Christoph Groß e0cf10bf4e Moved Colors into its own module 2018-09-19 11:44:17 +02:00
Christoph Groß a40cda8756 Improved Documentation of 2nd example 2018-09-18 15:56:38 +02:00
Christoph Groß 4c704a3af5 Started a new example for 1.54 in 2018-09-17 16:34:49 +02:00
Christoph Groß 06517e053e Added travis badge and improved package description for crates.io 2018-08-29 08:24:08 +02:00
Christoph Groß f49fd8604d updated version to fix wrong documentation link 2018-08-28 12:03:48 +02:00
Christoph Groß 96770946ec fixed wrong documentation link 2018-08-28 12:02:44 +02:00
Christoph Groß b367beb0a0 Added description, documentation, categories, keywords and license to package description 2018-08-28 11:59:48 +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
Christoph Groß 7893862eb6 Updated the example for the current status 2018-08-08 15:35:25 +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