Skip to content

Commit 5b4502d

Browse files
committed
feature: Support ili9488 driver
Signed-off-by: lbuque <1102390310@qq.com>
1 parent 6279224 commit 5b4502d

File tree

7 files changed

+584
-1
lines changed

7 files changed

+584
-1
lines changed

examples/tft_config/ili9488/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lcd: http://www.lcdwiki.com/zh/3.5inch_SPI_Module_ILI9488_SKU:MSP3520#.E5.B8.B8.E7.94.A8.E8.BD.AF.E4.BB.B6
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from machine import Pin, SPI
2+
import lcd
3+
4+
def config():
5+
hspi = SPI(2, sck=Pin(19), mosi=Pin(23), miso=None)
6+
panel = lcd.SPIPanel(spi=hspi, command=Pin(21), cs=Pin(22), pclk=60 * 1000 * 1000, width=320, height=480)
7+
ili = lcd.ILI9488(panel, reset=Pin(18), backlight=Pin(5), color_space=lcd.ILI9488.BGR, bits_per_pixel=18)
8+
ili.backlight_on()
9+
ili.reset()
10+
ili.init()
11+
ili.invert_color(False)
12+
return ili

0 commit comments

Comments
 (0)