Commit Graph

33 Commits (bd79ffdbc65be6de3bbe930e58d2c4f85d890aa2)

Author SHA1 Message Date
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
Christoph Groß 5dbf873631 Moved type_a LUTs to type_a mod.rs ,
updated dependencies accordingly
2018-08-06 13:54:23 +02:00
Christoph Groß 6422142133 Not all Type A screens are completly the same to the change to bring it all together was reverted. 2018-08-06 13:34:33 +02:00
Christoph Groß bbb79560f6 moved duplicate type a constants, commands and configs to a new, more generalised type_a module, not completly finished yet 2018-08-03 14:21:32 +02:00
Christoph Groß 94ac5938b2 fixed bad documentation of the 2in9 epd 2018-07-26 15:16:28 +02:00
Christoph Groß 1f2c68d16d Finished 2in9 support, now it needs to be tested 2018-07-20 13:25:30 +02:00
Christoph Groß 5e03c3c39a Stablised traits and interfaces, converted epd4in2 to it, and started real work on epd2in9 2018-07-19 16:46:15 +02:00
Christoph Groß 80e5c0ffb1 improved traits, now it should be ready to convert 4.2" 2018-07-19 11:08:26 +02:00
Christoph Groß ceee294cda Started some shared traits between the different epds, saving now 2018-07-18 17:03:11 +02:00
Christoph Groß 4cd9b26a24 Started work on 2in9 waveshare device, but nothing much besides copying has yet happened 2018-07-17 16:02:14 +02:00