Skip to content

Commit d237d15

Browse files
committed
fix(repo): fix typo errors
1 parent b4925ab commit d237d15

File tree

70 files changed

+148
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+148
-148
lines changed

.codespellrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
skip = ./src/touch/base/esp_lcd_touch_xpt2046.c

.github/workflows/check_lib_versions.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ jobs:
2727
echo "url: ${{ steps.last_release.outputs.url }}"
2828
- name: Check & Compare versions
2929
run: bash ./.github/scripts/check_lib_versions.sh ${{ steps.last_release.outputs.tag_name }}
30-

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ repos:
7171
rev: v2.3.0
7272
hooks:
7373
- id: codespell
74-
args: [-w]
74+
args: ['-w' , '--config', '.codespellrc']
7575

7676
- repo: local
7777
hooks:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* fix(examples): fix WiFiClock wrong name `ScreenPassord` by @lboue (#82)
3131
* fix(examples): fix LCD using `configVendorCommands()` before `init()`
3232
* fix(examples): fix `LV_USE_DEMO_WIDGETS` typo by @lboue (#98)
33-
* fix(examples): fix `Tearing fucntion` typo by @lboue (#96)
33+
* fix(examples): fix `Tearing function` typo by @lboue (#96)
3434
* fix(examples): fix WiFiClock log HTTP error code to serial console by @lboue (#97)
3535
* fix(examples): fix WiFiClock description
3636
* fix(gt911): allow to set the GT911 touch device address by @lboue (#86)

ESP_Panel_Board_Custom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
*
174174
* There are two formats for the sequence code:
175175
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
176-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
176+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
177177
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
178178
*/
179179
/*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Here is a snippet of the modified `ESP_Panel_Board_Custom.h` file:
217217
*
218218
* There are two formats for the sequence code:
219219
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
220-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
220+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
221221
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
222222
*/
223223
#define ESP_PANEL_LCD_VENDOR_INIT_CMD() \

README_CN.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ ESP32_Display_Panel 会根据 [ESP_Panel_Board_Custom.h](./ESP_Panel_Board_Custo
217217
*
218218
* There are two formats for the sequence code:
219219
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
220-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
220+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
221221
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
222222
*/
223223
#define ESP_PANEL_LCD_VENDOR_INIT_CMD() \
@@ -428,17 +428,17 @@ arduino-esp32 v3.x.x 版本的 SDK 位于默认安装路径下的 `tools > esp32
428428
429429
- **Step1**:从 [arduino-esp32-sdk](https://github.com/esp-arduino-libs/arduino-esp32-sdk) 下载 "high_perf" 版本的 SDK,并将其替换到 [arduino-esp32 的安装目录](#arduino-eps32-的安装目录以及-sdk-的目录在哪儿)中。
430430
431-
- **Step2**:如果您使用的是支持的开发板,则通常无需修改代码,因为它们默认设置了 `ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE` 为 `(ESP_PANEL_LCD_WIDTH * 10)`。如果问题仍然存在,请参考下面的示例代码来增大 `Bounce Bufer` 的大小。
431+
- **Step2**:如果您使用的是支持的开发板,则通常无需修改代码,因为它们默认设置了 `ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE` 为 `(ESP_PANEL_LCD_WIDTH * 10)`。如果问题仍然存在,请参考下面的示例代码来增大 `Bounce Buffer` 的大小。
432432
433-
- **Step3**:如果您使用的是自定义的开发板,请在 `ESP_Panel_Board_Custom.h` 文件中确认 `ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE` 是否设置为非 0。如果问题仍然存在,请增大 `Bounce Bufer` 的大小。
433+
- **Step3**:如果您使用的是自定义的开发板,请在 `ESP_Panel_Board_Custom.h` 文件中确认 `ESP_PANEL_LCD_RGB_BOUNCE_BUF_SIZE` 是否设置为非 0。如果问题仍然存在,请增大 `Bounce Buffer` 的大小。
434434
435-
- **Step4**:如果您使用的是独立的驱动,请参考下面的示例代码来设置 `Bounce Bufer` 的大小。
435+
- **Step4**:如果您使用的是独立的驱动,请参考下面的示例代码来设置 `Bounce Buffer` 的大小。
436436
437437
- **Step5**:如果您正在开发 LVGL 应用,将执行 RGB 外设初始化的任务与执行 LVGL lv_timer_handler() 的任务分配在同一个核上,请参考 [代码](./examples/LVGL/v8/Porting/lvgl_port_v8.h#L53)。
438438
439-
3. **示例代码**:以下示例代码展示了如何通过 `ESP_Panel` 驱动或独立的驱动来修改 `Bounce Bufer` 的大小:
439+
3. **示例代码**:以下示例代码展示了如何通过 `ESP_Panel` 驱动或独立的驱动来修改 `Bounce Buffer` 的大小:
440440
441-
**Example1**:使用 `ESP_Panel` 驱动修改 `Bounce Bufer` 大小:
441+
**Example1**:使用 `ESP_Panel` 驱动修改 `Bounce Buffer` 大小:
442442
443443
```c
444444
...
@@ -453,7 +453,7 @@ arduino-esp32 v3.x.x 版本的 SDK 位于默认安装路径下的 `tools > esp32
453453
...
454454
```
455455
456-
**Example2**:使用独立的驱动修改 `Bounce Bufer` 大小:
456+
**Example2**:使用独立的驱动修改 `Bounce Buffer` 大小:
457457
458458
```c
459459
...

examples/LCD/3wireSPI_RGB/3wireSPI_RGB.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
*
7878
* There are two formats for the sequence code:
7979
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
80-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
80+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
8181
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
8282
*/
8383
const esp_lcd_panel_vendor_init_cmd_t lcd_init_cmd[] = {

examples/LCD/QSPI/QSPI.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
*
8585
* There are two formats for the sequence code:
8686
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
87-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
87+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
8888
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
8989
*/
9090
const esp_lcd_panel_vendor_init_cmd_t lcd_init_cmd[] = {

examples/LCD/SPI/SPI.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
*
8787
* There are two formats for the sequence code:
8888
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
89-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
89+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
9090
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
9191
*/
9292
const esp_lcd_panel_vendor_init_cmd_t lcd_init_cmd[] = {

examples/LVGL/v8/Porting/ESP_Panel_Board_Custom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
*
174174
* There are two formats for the sequence code:
175175
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
176-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
176+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
177177
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
178178
*/
179179
/*

examples/LVGL/v8/Porting/lvgl_port_v8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void flush_callback(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t
198198
/* Reset flag */
199199
drv->full_refresh = 0;
200200

201-
// Roate and copy data from the whole screen LVGL's buffer to the next frame buffer
201+
// Rotate and copy data from the whole screen LVGL's buffer to the next frame buffer
202202
next_fb = flush_get_next_buf(lcd);
203203
rotate_copy_pixel((lv_color_t *)color_map, (lv_color_t *)next_fb, offsetx1, offsety1, offsetx2, offsety2,
204204
LV_HOR_RES, LV_VER_RES, LVGL_PORT_ROTATION_DEGREE);

examples/LVGL/v8/Porting/lvgl_port_v8.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
#define LVGL_PORT_RGB_BOUNCE_BUFFER_SIZE (LVGL_PORT_DISP_WIDTH * 10)
8484
/**
8585
* When avoid tearing is enabled, the LVGL software rotation `lv_disp_set_rotation()` is not supported.
86-
* But users can set the rotation degree(0/90/180/270) here, but this funciton will extremely reduce FPS.
86+
* But users can set the rotation degree(0/90/180/270) here, but this function will extremely reduce FPS.
8787
* So it is recommended to be used when using a low resolution display.
8888
*
8989
* Set the rotation degree:
@@ -151,15 +151,15 @@ bool lvgl_port_init(ESP_PanelLcd *lcd, ESP_PanelTouch *tp);
151151
*
152152
* @param timeout_ms The timeout of the mutex lock, in milliseconds. If the timeout is set to `-1`, it will wait indefinitely.
153153
*
154-
* @return ture if success, otherwise false
154+
* @return true if success, otherwise false
155155
*/
156156
bool lvgl_port_lock(int timeout_ms);
157157

158158
/**
159159
* @brief Unlock the LVGL mutex. This function should be called after using LVGL APIs when not in LVGL task, and the
160160
* `lvgl_port_lock()` function should be called before.
161161
*
162-
* @return ture if success, otherwise false
162+
* @return true if success, otherwise false
163163
*/
164164
bool lvgl_port_unlock(void);
165165

examples/LVGL/v8/Rotation/ESP_Panel_Board_Custom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
*
174174
* There are two formats for the sequence code:
175175
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
176-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
176+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
177177
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
178178
*/
179179
/*

examples/LVGL/v8/Rotation/lvgl_port_v8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void flush_callback(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t
198198
/* Reset flag */
199199
drv->full_refresh = 0;
200200

201-
// Roate and copy data from the whole screen LVGL's buffer to the next frame buffer
201+
// Rotate and copy data from the whole screen LVGL's buffer to the next frame buffer
202202
next_fb = flush_get_next_buf(lcd);
203203
rotate_copy_pixel((lv_color_t *)color_map, (lv_color_t *)next_fb, offsetx1, offsety1, offsetx2, offsety2,
204204
LV_HOR_RES, LV_VER_RES, LVGL_PORT_ROTATION_DEGREE);

examples/LVGL/v8/Rotation/lvgl_port_v8.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
#define LVGL_PORT_RGB_BOUNCE_BUFFER_SIZE (LVGL_PORT_DISP_WIDTH * 10)
8484
/**
8585
* When avoid tearing is enabled, the LVGL software rotation `lv_disp_set_rotation()` is not supported.
86-
* But users can set the rotation degree(0/90/180/270) here, but this funciton will extremely reduce FPS.
86+
* But users can set the rotation degree(0/90/180/270) here, but this function will extremely reduce FPS.
8787
* So it is recommended to be used when using a low resolution display.
8888
*
8989
* Set the rotation degree:
@@ -151,15 +151,15 @@ bool lvgl_port_init(ESP_PanelLcd *lcd, ESP_PanelTouch *tp);
151151
*
152152
* @param timeout_ms The timeout of the mutex lock, in milliseconds. If the timeout is set to `-1`, it will wait indefinitely.
153153
*
154-
* @return ture if success, otherwise false
154+
* @return true if success, otherwise false
155155
*/
156156
bool lvgl_port_lock(int timeout_ms);
157157

158158
/**
159159
* @brief Unlock the LVGL mutex. This function should be called after using LVGL APIs when not in LVGL task, and the
160160
* `lvgl_port_lock()` function should be called before.
161161
*
162-
* @return ture if success, otherwise false
162+
* @return true if success, otherwise false
163163
*/
164164
bool lvgl_port_unlock(void);
165165

examples/Panel/PanelTest/ESP_Panel_Board_Custom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
*
174174
* There are two formats for the sequence code:
175175
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
176-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
176+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
177177
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
178178
*/
179179
/*

examples/PlatformIO/platformio.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ lib_deps =
1919
https://github.com/esp-arduino-libs/ESP32_Display_Panel.git
2020
https://github.com/esp-arduino-libs/ESP32_IO_Expander.git
2121
https://github.com/lvgl/lvgl.git#release/v8.3
22-

examples/PlatformIO/src/ESP_Panel_Board_Custom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
*
174174
* There are two formats for the sequence code:
175175
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
176-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
176+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
177177
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
178178
*/
179179
/*

examples/PlatformIO/src/lvgl_port_v8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void flush_callback(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t
198198
/* Reset flag */
199199
drv->full_refresh = 0;
200200

201-
// Roate and copy data from the whole screen LVGL's buffer to the next frame buffer
201+
// Rotate and copy data from the whole screen LVGL's buffer to the next frame buffer
202202
next_fb = flush_get_next_buf(lcd);
203203
rotate_copy_pixel((lv_color_t *)color_map, (lv_color_t *)next_fb, offsetx1, offsety1, offsetx2, offsety2,
204204
LV_HOR_RES, LV_VER_RES, LVGL_PORT_ROTATION_DEGREE);

examples/PlatformIO/src/lvgl_port_v8.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
#define LVGL_PORT_RGB_BOUNCE_BUFFER_SIZE (LVGL_PORT_DISP_WIDTH * 10)
8181
/**
8282
* When avoid tearing is enabled, the LVGL software rotation `lv_disp_set_rotation()` is not supported.
83-
* But users can set the rotation degree(0/90/180/270) here, but this funciton will extremely reduce FPS.
83+
* But users can set the rotation degree(0/90/180/270) here, but this function will extremely reduce FPS.
8484
* So it is recommended to be used when using a low resolution display.
8585
*
8686
* Set the rotation degree:
@@ -148,15 +148,15 @@ bool lvgl_port_init(ESP_PanelLcd *lcd, ESP_PanelTouch *tp);
148148
*
149149
* @param timeout_ms The timeout of the mutex lock, in milliseconds. If the timeout is set to `-1`, it will wait indefinitely.
150150
*
151-
* @return ture if success, otherwise false
151+
* @return true if success, otherwise false
152152
*/
153153
bool lvgl_port_lock(int timeout_ms);
154154

155155
/**
156156
* @brief Unlock the LVGL mutex. This function should be called after using LVGL APIs when not in LVGL task, and the
157157
* `lvgl_port_lock()` function should be called before.
158158
*
159-
* @return ture if success, otherwise false
159+
* @return true if success, otherwise false
160160
*/
161161
bool lvgl_port_unlock(void);
162162

examples/SquareLine/v8/Porting/ESP_Panel_Board_Custom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
*
174174
* There are two formats for the sequence code:
175175
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
176-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
176+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
177177
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
178178
*/
179179
/*

examples/SquareLine/v8/Porting/lvgl_port_v8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void flush_callback(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t
198198
/* Reset flag */
199199
drv->full_refresh = 0;
200200

201-
// Roate and copy data from the whole screen LVGL's buffer to the next frame buffer
201+
// Rotate and copy data from the whole screen LVGL's buffer to the next frame buffer
202202
next_fb = flush_get_next_buf(lcd);
203203
rotate_copy_pixel((lv_color_t *)color_map, (lv_color_t *)next_fb, offsetx1, offsety1, offsetx2, offsety2,
204204
LV_HOR_RES, LV_VER_RES, LVGL_PORT_ROTATION_DEGREE);

examples/SquareLine/v8/Porting/lvgl_port_v8.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
#define LVGL_PORT_RGB_BOUNCE_BUFFER_SIZE (LVGL_PORT_DISP_WIDTH * 10)
8484
/**
8585
* When avoid tearing is enabled, the LVGL software rotation `lv_disp_set_rotation()` is not supported.
86-
* But users can set the rotation degree(0/90/180/270) here, but this funciton will extremely reduce FPS.
86+
* But users can set the rotation degree(0/90/180/270) here, but this function will extremely reduce FPS.
8787
* So it is recommended to be used when using a low resolution display.
8888
*
8989
* Set the rotation degree:
@@ -151,15 +151,15 @@ bool lvgl_port_init(ESP_PanelLcd *lcd, ESP_PanelTouch *tp);
151151
*
152152
* @param timeout_ms The timeout of the mutex lock, in milliseconds. If the timeout is set to `-1`, it will wait indefinitely.
153153
*
154-
* @return ture if success, otherwise false
154+
* @return true if success, otherwise false
155155
*/
156156
bool lvgl_port_lock(int timeout_ms);
157157

158158
/**
159159
* @brief Unlock the LVGL mutex. This function should be called after using LVGL APIs when not in LVGL task, and the
160160
* `lvgl_port_lock()` function should be called before.
161161
*
162-
* @return ture if success, otherwise false
162+
* @return true if success, otherwise false
163163
*/
164164
bool lvgl_port_unlock(void);
165165

examples/SquareLine/v8/WiFiClock/ESP_Panel_Board_Custom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
*
174174
* There are two formats for the sequence code:
175175
* 1. Raw data: {command, (uint8_t []){ data0, data1, ... }, data_size, delay_ms}
176-
* 2. Formater: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
176+
* 2. Formatter: ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, { data0, data1, ... }) and
177177
* ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(delay_ms, command)
178178
*/
179179
/*

examples/SquareLine/v8/WiFiClock/lvgl_port_v8.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void flush_callback(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t
198198
/* Reset flag */
199199
drv->full_refresh = 0;
200200

201-
// Roate and copy data from the whole screen LVGL's buffer to the next frame buffer
201+
// Rotate and copy data from the whole screen LVGL's buffer to the next frame buffer
202202
next_fb = flush_get_next_buf(lcd);
203203
rotate_copy_pixel((lv_color_t *)color_map, (lv_color_t *)next_fb, offsetx1, offsety1, offsetx2, offsety2,
204204
LV_HOR_RES, LV_VER_RES, LVGL_PORT_ROTATION_DEGREE);

examples/SquareLine/v8/WiFiClock/lvgl_port_v8.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
#define LVGL_PORT_RGB_BOUNCE_BUFFER_SIZE (LVGL_PORT_DISP_WIDTH * 10)
8484
/**
8585
* When avoid tearing is enabled, the LVGL software rotation `lv_disp_set_rotation()` is not supported.
86-
* But users can set the rotation degree(0/90/180/270) here, but this funciton will extremely reduce FPS.
86+
* But users can set the rotation degree(0/90/180/270) here, but this function will extremely reduce FPS.
8787
* So it is recommended to be used when using a low resolution display.
8888
*
8989
* Set the rotation degree:
@@ -151,15 +151,15 @@ bool lvgl_port_init(ESP_PanelLcd *lcd, ESP_PanelTouch *tp);
151151
*
152152
* @param timeout_ms The timeout of the mutex lock, in milliseconds. If the timeout is set to `-1`, it will wait indefinitely.
153153
*
154-
* @return ture if success, otherwise false
154+
* @return true if success, otherwise false
155155
*/
156156
bool lvgl_port_lock(int timeout_ms);
157157

158158
/**
159159
* @brief Unlock the LVGL mutex. This function should be called after using LVGL APIs when not in LVGL task, and the
160160
* `lvgl_port_lock()` function should be called before.
161161
*
162-
* @return ture if success, otherwise false
162+
* @return true if success, otherwise false
163163
*/
164164
bool lvgl_port_unlock(void);
165165

src/ESP_PanelTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#define ESP_PANEL_TOUCH_SPI_PANEL_IO_CONFIG(name, cs_io) _ESP_PANEL_TOUCH_SPI_PANEL_IO_CONFIG(name, cs_io)
6161

6262
/**
63-
* @brief Formater for single LCD vendor command with 8-bit parameter
63+
* @brief Formatter for single LCD vendor command with 8-bit parameter
6464
*
6565
* @param[in] delay_ms Delay in milliseconds after this command
6666
* @param[in] command LCD command
@@ -70,7 +70,7 @@
7070
#define ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(delay_ms, command, ...) {command, (uint8_t []) __VA_ARGS__, sizeof((uint8_t []) \
7171
__VA_ARGS__), delay_ms}
7272
/**
73-
* @brief Formater for single LCD vendor command with no parameter
73+
* @brief Formatter for single LCD vendor command with no parameter
7474
*
7575
* @param[in] delay_ms Delay in milliseconds after this command
7676
* @param[in] command LCD command

src/ESP_Panel_Board_Internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127

128128
#else
129129

130-
#error "Unkonw LCD panel bus type selected, please refer to the README for supported bus types"
130+
#error "Unknown LCD panel bus type selected, please refer to the README for supported bus types"
131131

132132
#endif /* ESP_PANEL_LCD_BUS_TYPE */
133133
#endif /* ESP_PANEL_USE_LCD */
@@ -147,7 +147,7 @@
147147

148148
#else
149149

150-
#error "Unkonw Touch bus type selected, please refer to the README for supported bus types."
150+
#error "Unknown Touch bus type selected, please refer to the README for supported bus types."
151151

152152
#endif /* ESP_PANEL_TOUCH_BUS_TYPE */
153153
#endif /* ESP_PANEL_USE_TOUCH */

0 commit comments

Comments
 (0)