Skip to content

Commit 630f9a9

Browse files
committed
optimize lcd spi
- optionally to use fast spi pins - move lcd code to implementation - direct register access (no driver required) - optimize screen update to take least possible time (result ~ 30fps)
1 parent ff7a21e commit 630f9a9

File tree

5 files changed

+379
-319
lines changed

5 files changed

+379
-319
lines changed

components/driver/Kconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
menu "LCD SPI Pins"
2+
3+
config LCD_USE_FAST_PINS
4+
bool "Use fast SPI pins"
5+
default "n"
6+
help
7+
When enabled LCD pins are:
8+
MISO 19
9+
MOSI 23
10+
CLK 18
11+
CS 5
12+
DC 21
13+
RST 22
14+
BCKL 25
15+
16+
When disabled (default) LCD pins are:
17+
MISO 25
18+
MOSI 23
19+
CLK 19
20+
CS 22
21+
DC 21
22+
RST 18
23+
BCKL 5
24+
25+
26+
endmenu

components/driver/spi_lcd.c

Lines changed: 0 additions & 318 deletions
This file was deleted.

0 commit comments

Comments
 (0)