Skip to content

Commit

Permalink
feat(esp_jpeg): specify the target with ROM functions
Browse files Browse the repository at this point in the history
Currently only esp32, esp32c3, esp32s3 and esp32c6 has the ROM code for tjpgd library.

Also renamed the example name
  • Loading branch information
suda-morris committed Jul 13, 2023
1 parent 8593068 commit c6ae1be
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .build-test-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sh2lib/examples/http2_request:
- if: IDF_VERSION_MAJOR > 4 and INCLUDE_DEFAULT == 1
reason: Example uses sh2lib component which was introduced in IDF v5.0

esp_jpeg/examples/tjpgd:
esp_jpeg/examples/get_started:
enable:
- if: IDF_VERSION_MAJOR > 4 and IDF_TARGET in ["esp32", "esp32s2", "esp32s3"]
reason: Example depends on BSP, which is supported only for IDF >= 5.0 and limited targets
2 changes: 1 addition & 1 deletion esp_jpeg/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ menu "JPEG Decoder"

config JD_USE_ROM
bool "Use TinyJPG Decoder from ROM"
depends on (!IDF_TARGET_ESP32S2 && !IDF_TARGET_ESP32C2 && !IDF_TARGET_ESP32H2)
depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32S3
default y
help
By default, Espressif SoCs use TJpg decoder implemented in ROM code.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |

## LCD tjpgd example
# LCD tjpgd example

This example shows how to decode a jpeg image and display it on an SPI-interfaced LCD, and rotates the image periodically.

Expand All @@ -19,7 +16,7 @@ Example using initialization of the LCD from [ESP-BSP](https://github.com/espres

The connection between ESP Board and the LCD is as follows:

```
```text
ESP Board LCD Screen
+---------+ +---------------------------------+
| | | |
Expand All @@ -42,7 +39,7 @@ The connection between ESP Board and the LCD is as follows:
+---------+ +---------------------------------+
```

The GPIO numbers used by this example is taken from BSP.
The GPIO numbers used by this example is taken from BSP.

### Build and Flash

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes

0 comments on commit c6ae1be

Please sign in to comment.