From 7dcc2b107907479ef073ecde5008beac9d412f3c Mon Sep 17 00:00:00 2001 From: Yuri Iozzelli Date: Tue, 19 Jun 2018 23:53:06 +0200 Subject: [PATCH] Fix coordinates for draw --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b017427..b70e620 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] categories = ["embedded", "hardware-support", "no-std"] diff --git a/src/lib.rs b/src/lib.rs index abb89da..e331118 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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");