Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

add ILI9341 320x240 LCD driver #568

@mmoskal

Description

@mmoskal

The ILI9341 driver should be the same as ST7735 except for the init sequence and screen size. An example init sequence is here
https://github.com/adafruit/Adafruit_ILI9341/blob/master/Adafruit_ILI9341.cpp#L151-L178

A new class needs to be added similar to this

export interface ST7735Options extends STLikeDisplayOptions {}
export class ST7735Driver extends STLikeDisplayDriver {
constructor(image: Image, options: ST7735Options) {
super(
image,
options,
hex`
01 80 78 // SWRESET + 120ms
11 80 78 // SLPOUT + 120ms
20 00 // INVOFF
3A 01 05 // COLMOD 16bit
13 80 0A // NORON + 10ms
29 80 0A // DISPON + 10ms
`
)
}
}

The main thing is to test it with hardware

** Datasheet, firmware, etc... **

https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions