This repository was archived by the owner on Aug 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
add ILI9341 320x240 LCD driver #568
Copy link
Copy link
Closed
Labels
Description
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
devicescript/packages/drivers/src/st7735.ts
Lines 247 to 264 in 9cd49ae
| 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... **