Skip to content
This repository was archived by the owner on Dec 4, 2020. It is now read-only.

Commit ee758d0

Browse files
authored
Update Readme.md
Small modifications to properly format code parts.
1 parent 1893719 commit ee758d0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

examples/ESP32_TFT_eSPI_Slider/Readme.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,43 @@
22

33
This example has the screen set to 320x480 (ILI9488), change this by altering the following lines in the main ino file:
44

5+
```C
56
int screenWidth = 480;
67
int screenHeight = 320;
8+
```
79

810
## Backlight
911

1012
Change pin 32 to your preferred backlight pin using a PNP transistor (2N3906) or remove the following code and connect directly to +ve:
1113

14+
```C
1215
ledcSetup(10, 5000/*freq*/, 10 /*resolution*/);
1316
ledcAttachPin(32, 10);
1417
analogReadResolution(10);
1518
ledcWrite(10,768);
19+
```
1620
1721
## Theme selection
1822
1923
Change the following to change the theme:
2024
25+
```C
2126
lv_theme_t * th = lv_theme_night_init(210, NULL); //Set a HUE value and a Font for the Night Theme
2227
lv_theme_set_current(th);
28+
```
2329

2430
## Calibration
2531

2632
This is using the bodmer tft_espi driver for touch. To correctly set the calibration load the calibration sketch and replace the following with your values:
2733

28-
uint16_t calData[5] = { 275, 3620, 264, 3532, 1 };
34+
```C
35+
uint16_t calData[5] = { 275, 3620, 264, 3532, 1 };
36+
```
2937
30-
## Scrreen rotation
38+
## Screen rotation
3139
3240
Check the following if you need to alter your screen rotation:
3341
42+
```C
3443
tft.setRotation(3);
44+
```

0 commit comments

Comments
 (0)