You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-26Lines changed: 57 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,17 @@ More information, data sheets, ordering information etc. can be found at [Sunton
14
14
15
15
Currently this library supports the following boards:
16
16
17
-
- ESP32-1732S019N/C
18
-
- ESP32-2424S012N/C
19
-
- ESP32-2432S024R/C/N
20
-
- ESP32-2432S028R
21
-
- ESP32-2432S032N/R/C
22
-
- ESP32-3248S035R/C
23
-
- ESP32-4827S043R/C
24
-
- ESP32-4848S040C_I_Y_1/3
25
-
- ESP32-8048S050N/C
26
-
- ESP32-8048S070N/C
27
-
- ESP32-4848S040C
17
+
- ESP32-1732S019 N/C
18
+
- ESP32-2424S012 N/C
19
+
- ESP32-2432S022 N/C
20
+
- ESP32-2432S024 R/C/N
21
+
- ESP32-2432S028 R ( 3 variants)
22
+
- ESP32-2432S032 N/R/C
23
+
- ESP32-3248S035 R/C
24
+
- ESP32-4827S043 R/C
25
+
- ESP32-4848S040C _I_Y_1/3
26
+
- ESP32-8048S050 N/C/R
27
+
- ESP32-8048S070 N/C/R
28
28
29
29
This library integrates seamlessly in [PlatformIO](https://platformio.org/) and supports these boards by providing display and touch and provides a jump start!
30
30
@@ -62,7 +62,6 @@ Get started by following the steps below. It is also highly recommended to look
62
62
This demo provides:
63
63
64
64
- User Interface created using the SquareLine Studio GUI generator.
65
-
- Sound over I2S and internal DAC
66
65
- Read the CdS (light sensor)
67
66
- Control of the LEDs
68
67
- Works for all known boards
@@ -200,15 +199,17 @@ Especially the definition of the LV_CONF_PATH is critical, this must point to an
The line in the settings logs to the serial console but can be omitted for production builds:
209
210
210
211
```ini
211
-
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
212
+
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
212
213
```
213
214
214
215
The -Wall flag can also be removed but outputs all the warnings.
@@ -365,8 +366,11 @@ The data returned can set in to the ```touch_calibration_data```
365
366
366
367
## Rotation of the display and touch
367
368
368
-
The library supports rotating for most of the controllers using hardware. Support for the direct 16bits parallel connection is done using software emulation (in LVGL).
369
-
Rotating the touch is also done when rotating.
369
+
The library supports rotating for most of the controllers using hardware. Support for the direct 16bits parallel connection is done using software emulation (in LVGL). Rotating the touch is done by LVGL when rotating.
370
+
371
+
From the LVGL documentation:
372
+
*The rotation values are relative to how you would rotate the physical display in the clockwise direction.
373
+
Thus, LV_DISP_ROT_90 means you rotate the hardware 90 degrees clockwise, and the display rotates 90 degrees counterclockwise to compensate.*
370
374
371
375
Rotating is done calling the ```lv_disp_set_rotation``` function in the LVGL library with the rotation:
372
376
@@ -376,7 +380,18 @@ Rotating is done calling the ```lv_disp_set_rotation``` function in the LVGL lib
376
380
```
377
381
378
382
Some boards are around that have flipped screens, this is probably due to differences during tha manufacturing or using different TFTs. It is possible to correct these boards overriding the default defines.
379
-
However if this is encountered a separate board definition is preferable.
383
+
384
+
To adjust the display and touch to the default (LV_DISP_ROT_NONE) there are 6 defines in the boards definition:
385
+
386
+
| Name | Description |
387
+
|--- |--- |
388
+
| DISPLAY_SWAP_XY | Swaps the X and Y coordinates for the display |
389
+
| DISPLAY_MIRROR_X | Mirrors the X coordinate for the display |
390
+
| DISPLAY_MIRROR_Y | Mirrors the Y coordinate for the display |
391
+
| TOUCH_SWAP_XY | Swaps the X and Y coordinates for the touch |
392
+
| TOUCH_MIRROR_X | Mirrors the X coordinate for the touch |
393
+
| TOUCH_MIRROR_Y | Mirrors the Y coordinate for the touch |
394
+
380
395
381
396
## Appendix: Template to support ALL the boards
382
397
@@ -391,11 +406,14 @@ The platformio.ini file below supports all the boards. This is useful when runni
391
406
#default_envs = esp32-1732S019N
392
407
#default_envs = esp32-2424S012C
393
408
#default_envs = esp32-2424S012N
409
+
#default_envs = esp32-2432S022N
410
+
#default_envs = esp32-2432S022C
394
411
#default_envs = esp32-2432S024C
395
412
#default_envs = esp32-2432S024N
396
413
#default_envs = esp32-2432S024R
397
414
#default_envs = esp32-2432S028R
398
415
#default_envs = esp32-2432S028Rv2
416
+
#default_envs = esp32-2432S028Rv3
399
417
#default_envs = esp32-2432S032C
400
418
#default_envs = esp32-2432S032N
401
419
#default_envs = esp32-2432S032R
@@ -404,8 +422,8 @@ The platformio.ini file below supports all the boards. This is useful when runni
404
422
#default_envs = esp32-4827S043C
405
423
#default_envs = esp32-4827S043N
406
424
#default_envs = esp32-4827S043R
407
-
#default_envs = esp32-4848S040C_I_Y_1
408
-
#default_envs = esp32-4848S040C_I_Y_2
425
+
#default_envs = esp32-4848S040CIY1
426
+
#default_envs = esp32-4848S040CIY3
409
427
#default_envs = esp32-8048S043C
410
428
#default_envs = esp32-8048S043N
411
429
#default_envs = esp32-8048S043R
@@ -414,6 +432,7 @@ The platformio.ini file below supports all the boards. This is useful when runni
0 commit comments