mirror of
https://github.com/yuri91/ili9341-rs.git
synced 2024-11-21 22:30:59 +00:00
Fix coordinates for draw
This commit is contained in:
parent
5a15e029a3
commit
7dcc2b1079
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ili9341"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
description = "A platform agnostic driver to interface with the ILI9341 (ald ILI9340C) TFT LCD display"
|
||||
authors = ["Yuri Iozzelli <y.iozzelli@gmail.com>"]
|
||||
categories = ["embedded", "hardware-support", "no-std"]
|
||||
|
|
|
@ -296,9 +296,9 @@ where
|
|||
{
|
||||
for (pos, color) in item_pixels {
|
||||
self.draw_raw(
|
||||
pos.0 as u16,
|
||||
pos.0 as u16,
|
||||
pos.1 as u16,
|
||||
pos.0 as u16,
|
||||
pos.1 as u16,
|
||||
if color != 0 { &[1] } else { &[0] },
|
||||
).expect("Failed to communicate with device");
|
||||
|
|
Loading…
Reference in a new issue