mirror of
https://github.com/yuri91/ili9341-rs.git
synced 2024-11-21 22:30:59 +00:00
Fix color conversion for Pixel
This commit is contained in:
parent
7dcc2b1079
commit
22f80d0e39
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ where
|
|||
pos.1 as u16,
|
||||
pos.0 as u16,
|
||||
pos.1 as u16,
|
||||
if color != 0 { &[1] } else { &[0] },
|
||||
if color == 0 { &[0xff,0xff] } else { &[0,0] },
|
||||
).expect("Failed to communicate with device");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue