Fix coordinates for draw

This commit is contained in:
Yuri Iozzelli 2018-06-19 23:53:06 +02:00
parent 5a15e029a3
commit 7dcc2b1079
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "ili9341" 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" description = "A platform agnostic driver to interface with the ILI9341 (ald ILI9340C) TFT LCD display"
authors = ["Yuri Iozzelli <y.iozzelli@gmail.com>"] authors = ["Yuri Iozzelli <y.iozzelli@gmail.com>"]
categories = ["embedded", "hardware-support", "no-std"] categories = ["embedded", "hardware-support", "no-std"]

View file

@ -296,9 +296,9 @@ where
{ {
for (pos, color) in item_pixels { for (pos, color) in item_pixels {
self.draw_raw( self.draw_raw(
pos.0 as u16,
pos.0 as u16, pos.0 as u16,
pos.1 as u16, pos.1 as u16,
pos.0 as u16,
pos.1 as u16, pos.1 as u16,
if color != 0 { &[1] } else { &[0] }, if color != 0 { &[1] } else { &[0] },
).expect("Failed to communicate with device"); ).expect("Failed to communicate with device");