Chris
2a3b10ba94
Don't make expensive calculations if pixel is outside the display and return early
7 years ago
Chris
dbdb8912a8
cleanup
7 years ago
Chris
08457e503d
Use the fixed embedded graphics lib once more
7 years ago
Chris
e17697cfb1
Fix missing std-lib in a test
7 years ago
Chris
2fb19b2df9
added many tests to drawing
7 years ago
Chris
d2a47eb05c
Rename Buffer Trait to Display and add a Rotation Function to it
7 years ago
Chris
8904066de6
Moved constants of type_a to its own file
7 years ago
Chris
ff21d6e611
add impl Drawing<Color> for DisplayEink42BlackWhite
...
fix error by using option for style
7 years ago
Chris
98a9b1c0ed
Fix examples
7 years ago
Chris
29b7986848
Add from_u8 to color, finish drawing for 4in2
7 years ago
Chris
8a7309cfc8
Renamed old drawing mod to drawing_old
7 years ago
caemor
e30cb6f7e8
Make Enum DisplayRotation, impl Buffer and Drawing for 4in2 display
7 years ago
caemor
3196c4b387
fix embedded_graphics include
7 years ago
caemor
c16e136d09
fix
7 years ago
caemor
8d08bef233
add embedded_graphics
7 years ago
Chris
4916ac674a
Add an reference to the linux specific max spi bytes size
7 years ago
Chris
6b89ee1b8e
Set spi chunk limit on linux with cfg!
...
Not tested yet
7 years ago
Chris
468425881c
readd data_x_times
7 years ago
Chris
aa7497fa60
Still trying to fix an error
7 years ago
Chris
2e4ee5308a
remove error in previous commit
7 years ago
Chris
4155bd616b
add error messages for debugging
7 years ago
Chris
b7fe5674ee
send full buffer instead of loop
7 years ago
Chris
f131636b01
Addition to previous commit (examples and forgotten save)
7 years ago
Chris
89489da657
Renaming of WaveshareInterface and Connectioninterface
...
WaveshareInterface -> WaveshareDisplay
traits::interface::ConnectionInterface -> interface::DisplayInterface
7 years ago
Chris
87832f6043
Made SPI shareable
...
Disown spi for better shareabilty
7 years ago
Chris
6a24acf62b
Removed data_x_times function
7 years ago
Chris
2f4ebfecab
Fix previous Delay Commit
...
Some stuff was forgotten in the previous commit
7 years ago
Chris
fabc5f262e
Make delay a function parameter
...
This change makes delay a function parameter where necessary and stops the need of owning the delay
7 years ago
Chris
1791388a8b
Renamed folder `interface` to `traits`
7 years ago
Chris
0ddaf9679a
Deletion of single u8 data Transfers and renaming of various functions
...
command_with_data -> cmd_with_data
command -> cmd
multiple_data -> data
7 years ago
Chris
829a9e71eb
Fix previous Delay Commit
...
Some stuff was forgotten in the previous commit
7 years ago
Chris
38dc5126ee
Make delay a function parameter
...
This change makes delay a function parameter where necessary and stops the need of owning the delay
7 years ago
Chris
6efa864014
Renamed folder `interface` to `traits`
7 years ago
Chris
7612aad99a
Deletion of single u8 data Transfers and renaming of various functions
...
command_with_data -> cmd_with_data
command -> cmd
multiple_data -> data
7 years ago
Christoph Groß
80090d8df2
Added testcases for default size and color of the various displays
7 years ago
Christoph Groß
9fc4c0c1c7
Fixed missing renaming of .width() and height() methods
7 years ago
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
7 years ago
Christoph Groß
493a7bd0c0
Clarified Documentation for clear_frame and sleep
7 years ago
Christoph Groß
2cc4bceac3
Featuregate the graphics modules
...
This commit makes it possible to compile without the included graphics features
7 years ago
Christoph Groß
e0cf10bf4e
Moved Colors into its own module
7 years ago
Christoph Groß
4c704a3af5
Started a new example for 1.54 in
7 years ago
Christoph Groß
cd593c51cb
Make the code more readable with a few already introduced adapter functions (e.g. command_with_data)
7 years ago
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
7 years ago
Christoph Groß
99d1d66a3c
add copy and clone traits to color
7 years ago
Christoph Groß
956a04d0f1
Make Connectioninterface private
7 years ago
Christoph Groß
e253b33704
renamed terminate command to NOP
7 years ago
Christoph Groß
cd98033204
first steps to rustfmt althought it sometimes doesn#t exactly looks good
7 years ago
Christoph Groß
7758e37e1a
- Made Connectioninterface public in root module,
...
- fixed the example (which needed updated dependencies)
7 years ago
Christoph Groß
49bad9c547
fixed the wrong reference to the epd2in9 display instead of the 1in54
7 years ago
Christoph Groß
835e25d133
Used cargo clippy to fix a few bad coding styles
7 years ago