Commit graph

45 commits

Author SHA1 Message Date
Yuri Iozzelli
ddffec49c6 Remove support for embedded-graphics 0.6 2021-06-10 18:35:09 +02:00
Grant Miller
115fec7703 Add support for embedded-graphics-core 0.3 2021-05-12 17:01:59 -05:00
Grant Miller
47d4a07469 Move mod graphics to top and delete extern crate 2021-05-12 15:37:04 -05:00
Grant Miller
c93637abfd Rename draw methods
- Rename `draw_iter` to `draw_raw_iter` to avoid conflict with
`embedded_graphics_core::DrawTarget::draw_iter`

- Rename `draw_raw` to `draw_raw_slice` for consistency
2021-05-12 15:33:38 -05:00
Grant Miller
535feb236c Loosen trait bounds 2021-05-11 11:53:39 -05:00
Grant Miller
be44c24eea Use Result alias 2021-05-11 11:53:39 -05:00
Grant Miller
954d111959 Use display_interface::DisplayError 2021-05-11 11:50:51 -05:00
Yuri Iozzelli
d9f35775d6
Merge pull request #24 from GrantM11235/remove-old-interface-trait
Remove old `Interface` trait
2021-05-11 09:17:57 +02:00
Grant Miller
ea9cb59bff Remove old Interface trait 2021-05-10 16:02:56 -05:00
Grant Miller
8884885ca0 Move ::spi::MODE to ::SPI_MODE
We don't need a whole module for just one const
2021-05-10 15:57:26 -05:00
Ales Musil
e350936d82 Fix underflow in scrolling
When window was smaller than whole display
scrolling by small step could cause underflow
in the offset computation.
2021-01-21 13:20:30 +01:00
Ales Musil
b5077900be Do not hardcode display size
ili driver family is pretty generic with support
of multiple display sizes. By having width and size
as parameter this driver can support broader range
of ili displays.
2020-10-30 08:28:47 +01:00
Tom
afbfd98f9d Implement hardware vertical scroll 2020-10-17 00:36:58 -07:00
Grant Miller
61531412cf Add comment to pixel format set 2020-08-28 15:35:08 -05:00
Grant Miller
427127fe2d Use set_orientation in initialization 2020-08-28 15:35:08 -05:00
Grant Miller
780a5f0c25 Remove gamma set command, 0x01 is the default 2020-08-28 15:35:08 -05:00
Grant Miller
bc1282b0ca Remove extended commands 2020-08-28 15:35:08 -05:00
Grant Miller
2342655799 Simplify reset and reduce delays 2020-08-28 15:35:08 -05:00
Daniel Egger
dc9a389b79 Rough first conversion to display-interface
Tested with SPI display

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
2020-06-01 14:30:03 +02:00
Yuri Iozzelli
651aba971b Move embedded_graphics code in graphics.rs 2020-03-01 16:44:41 +01:00
Yuri Iozzelli
6bdd8e6e37 Add fast rectangle drawing 2020-03-01 16:34:32 +01:00
Yuri Iozzelli
fe16080383 Update to embedded_graphics 0.6.0-beta.1 2020-03-01 15:29:25 +01:00
Theo Hussey
97999343fd added parallel gpio interface 2020-02-06 23:10:53 +00:00
Vadim Kaushan
c51eaa4ffa
Edition 2018 2020-01-28 20:53:24 +03:00
Vadim Kaushan
f958482f98
Shrink row buffer to the previous capacity 2020-01-28 20:50:58 +03:00
Vadim Kaushan
11c4a5ca34
Use u16 for pixel data 2020-01-28 20:35:46 +03:00
Vadim Kaushan
459545a777
Update Error type 2020-01-28 20:27:04 +03:00
Vadim Kaushan
6056b3db22
Fix formatting 2020-01-28 20:03:35 +03:00
Vadim Kaushan
d9ab0601b7
Split Ili9341 constructor in two 2020-01-28 20:02:35 +03:00
Vadim Kaushan
5b03a86bb0
Move SPI interface implementation into a separate file 2020-01-28 19:56:12 +03:00
Vadim Kaushan
f09403d092
Add Interface trait 2020-01-28 19:45:23 +03:00
Theo Hussey
20c22260a6 buffer contiguous pixels before sending to dislay for speed boost 2019-12-19 14:49:16 +00:00
Theo Hussey
363d7a0650 changed to use digital v2 output pin, corrected embedded-graphics endianness 2019-12-19 00:23:12 +00:00
David Flemström
6d82f813bc Add color support 2019-12-17 11:06:54 +01:00
David Flemström
905a1c8406 Upgrade to embedded-graphics 0.6.0-alpha.2 2019-12-17 10:55:56 +01:00
James Waples
303b1da769 Support black and white drawing using e_g 0.4.4 2018-10-25 19:38:22 +01:00
Yuri Iozzelli
22f80d0e39 Fix color conversion for Pixel 2018-06-24 17:16:05 +02:00
Yuri Iozzelli
7dcc2b1079 Fix coordinates for draw 2018-06-19 23:53:06 +02:00
Yuri Iozzelli
5a15e029a3 rustfmt 2018-06-19 23:30:04 +02:00
Yuri Iozzelli
e7ab490e53 Implement embedded_graphics 2018-06-19 23:29:24 +02:00
Yuri Iozzelli
6e2f56ac62 Fix doc text 2018-03-04 18:44:19 +01:00
Yuri Iozzelli
62ffbf6850 Add basic documentation 2018-03-04 18:29:04 +01:00
Yuri Iozzelli
75991b4316 Use constants for width and height, but not public 2018-03-04 17:54:39 +01:00
Yuri Iozzelli
842fad7682 Use enum for orientation 2018-03-04 15:43:28 +01:00
Yuri Iozzelli
891ed62f51 First commit. Basic functionality ok 2018-02-24 14:37:17 +01:00