@geastack/targets 0.1.100 → 0.1.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/package.json +7 -7
  2. package/targets/cmake/geatsc-generated-archive-build.mjs +32 -1
  3. package/targets/esp32/app_project.cmake +2 -2
  4. package/targets/esp32/chip_bindings/audio/echo_cancellation.cpp +392 -28
  5. package/targets/esp32/chip_bindings/audio/echo_cancellation.h +18 -2
  6. package/targets/esp32/chip_bindings/audio/es8311.cpp +117 -13
  7. package/targets/esp32/chip_bindings/displays/co5300.cpp +68 -28
  8. package/targets/esp32/components/gea_framework/CMakeLists.txt +17 -1
  9. package/targets/esp32/components/gea_framework/idf_component.yml +4 -0
  10. package/targets/esp32/components/gea_vpx/CMakeLists.txt +1 -1
  11. package/targets/esp32/connectivity/wifi.cpp +800 -543
  12. package/targets/esp32/display.cpp +121 -26
  13. package/targets/esp32/gea_framework.cmake +22 -28
  14. package/targets/esp32/host_sources.cmake +1 -0
  15. package/targets/esp32/services/comparison_benchmark.h +137 -0
  16. package/targets/esp32/services/comparison_gesture.h +133 -0
  17. package/targets/esp32/services/comparison_input_trace.h +64 -0
  18. package/targets/esp32/services/comparison_upload_capture.h +125 -0
  19. package/targets/esp32/services/debugger.h +634 -0
  20. package/targets/esp32/services/device_control.cpp +965 -20
  21. package/targets/esp32/services/frame_scheduler.cpp +128 -4
  22. package/targets/esp32/services/heap.cpp +125 -0
  23. package/targets/esp32/services/opus_benchmark.h +1 -1
  24. package/targets/esp32/services/storage_service.cpp +119 -104
  25. package/targets/esp32-p4-m5stack-tab5/dependencies.lock +27 -16
  26. package/targets/esp32-s3-m5stack-stopwatch/.clang-format +10 -0
  27. package/targets/esp32-s3-m5stack-stopwatch/README.md +14 -9
  28. package/targets/esp32-s3-m5stack-stopwatch/dependencies.lock +54 -1
  29. package/targets/esp32-s3-m5stack-stopwatch/main/CMakeLists.txt +10 -7
  30. package/targets/esp32-s3-m5stack-stopwatch/main/buttons.cpp +80 -0
  31. package/targets/esp32-s3-m5stack-stopwatch/main/idf_component.yml +18 -0
  32. package/targets/esp32-s3-m5stack-stopwatch/main/include/board.h +38 -17
  33. package/targets/esp32-s3-m5stack-stopwatch/main/panel_reset.cpp +132 -129
  34. package/targets/esp32-s3-m5stack-stopwatch/main/power.cpp +253 -0
  35. package/targets/esp32-s3-m5stack-stopwatch/main/touch.cpp +158 -88
  36. package/targets/esp32-s3-m5stack-stopwatch/sdkconfig.defaults +13 -0
  37. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +30 -3
  38. package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +10 -148
  39. package/targets/esp32-s31-espressif-mosaico/CMakeLists.txt +8 -0
  40. package/targets/esp32-s31-espressif-mosaico/README.md +54 -2
  41. package/targets/esp32-s31-espressif-mosaico/dependencies.lock +405 -1
  42. package/targets/esp32-s31-espressif-mosaico/main/CMakeLists.txt +31 -1
  43. package/targets/esp32-s31-espressif-mosaico/main/board_power.cpp +117 -0
  44. package/targets/esp32-s31-espressif-mosaico/main/camera.cpp +389 -0
  45. package/targets/esp32-s31-espressif-mosaico/main/idf_component.yml +17 -3
  46. package/targets/esp32-s31-espressif-mosaico/main/include/board.h +23 -0
  47. package/targets/esp32-s31-espressif-mosaico/main/nand_mount.cpp +172 -0
  48. package/targets/esp32-s31-espressif-mosaico/partitions.csv +7 -3
  49. package/targets/esp32-s31-espressif-mosaico/sdkconfig.defaults +24 -0
@@ -1,4 +1,14 @@
1
1
  dependencies:
2
+ 78/esp-opus:
3
+ component_hash: 8182b733f071d7bfe1e837f4c9f8649a63e4c937177f089e65772880c02f2e17
4
+ dependencies:
5
+ - name: idf
6
+ require: private
7
+ version: '>=5.0'
8
+ source:
9
+ registry_url: https://components.espressif.com/
10
+ type: service
11
+ version: 1.0.5
2
12
  espressif/cmake_utilities:
3
13
  component_hash: 351350613ceafba240b761b4ea991e0f231ac7a9f59a9ee901f751bddc0bb18f
4
14
  dependencies:
@@ -10,7 +20,7 @@ dependencies:
10
20
  type: service
11
21
  version: 0.5.3
12
22
  espressif/eppp_link:
13
- component_hash: 04f7f31868b8ae6014c96132740a192d09611a6e46aaa7038c865ffc7e26b38f
23
+ component_hash: c1369b37f2b0b427b198ae14e07e7547d3da92b95fe4dc7f949e5de560b35f21
14
24
  dependencies:
15
25
  - name: espressif/esp_serial_slave_link
16
26
  registry_url: https://components.espressif.com
@@ -22,7 +32,7 @@ dependencies:
22
32
  source:
23
33
  registry_url: https://components.espressif.com
24
34
  type: service
25
- version: 1.1.5
35
+ version: 1.1.6
26
36
  espressif/esp_cam_sensor:
27
37
  component_hash: 902c305b77f7c42b60fff5a084e397694f8a3fd6e6b72299996a7c856666e983
28
38
  dependencies:
@@ -69,7 +79,7 @@ dependencies:
69
79
  type: service
70
80
  version: 1.0.4
71
81
  espressif/esp_hosted:
72
- component_hash: 59c68fc3a8f25388b9a239ddec5f7bc81e6310d51108db1688e129e791450c31
82
+ component_hash: f1792f36ef9a637adf2faa2662f3c4500b07f3d2ba65c25f3ed4824490ba59f9
73
83
  dependencies:
74
84
  - name: idf
75
85
  require: private
@@ -77,7 +87,7 @@ dependencies:
77
87
  source:
78
88
  registry_url: https://components.espressif.com/
79
89
  type: service
80
- version: 2.12.9
90
+ version: 2.12.13
81
91
  espressif/esp_ipa:
82
92
  component_hash: 31003e536f0d26158e10d7fcf2448b6377ce1148518287d0f34ed3b6c942c6d8
83
93
  dependencies:
@@ -113,7 +123,7 @@ dependencies:
113
123
  type: service
114
124
  version: 1.5.0
115
125
  espressif/esp_sccb_intf:
116
- component_hash: c071b189e49f40940722aea01a5489f873385cc39cd5b14012341135b85d1a9d
126
+ component_hash: eb6a7d5c992f09583c163b2e3f5e95a0fdc87a2d9f8e026f3e59153935553889
117
127
  dependencies:
118
128
  - name: idf
119
129
  require: private
@@ -121,7 +131,7 @@ dependencies:
121
131
  source:
122
132
  registry_url: https://components.espressif.com
123
133
  type: service
124
- version: 0.0.8
134
+ version: 0.0.9
125
135
  espressif/esp_serial_slave_link:
126
136
  component_hash: ac1776806de0a6e371c84e87898bb983e19ce62aa7f1e2e5c4a3b0234a575d2c
127
137
  dependencies:
@@ -206,11 +216,11 @@ dependencies:
206
216
  type: service
207
217
  version: 1.6.1
208
218
  espressif/usb:
209
- component_hash: 1d90d7c7b0682dbfcc36f47cf5acf224a5cfb850a62f39cd86d3159cfec12a81
219
+ component_hash: 6c2cff118141dbbca181d0d27d71801fdddfc78f7ac03ae43f6e5a8cbd89cb99
210
220
  dependencies:
211
221
  - name: idf
212
222
  require: private
213
- version: '>=5.4'
223
+ version: '>=5.5.3'
214
224
  source:
215
225
  registry_url: https://components.espressif.com
216
226
  type: service
@@ -221,7 +231,7 @@ dependencies:
221
231
  - esp32p4
222
232
  - esp32h4
223
233
  - linux
224
- version: 1.4.1
234
+ version: 1.5.0
225
235
  espressif/usb_host_uvc:
226
236
  component_hash: f20c4e4dea50536e2e29daaf589b5f5984402284c155867daef27d6b64869f78
227
237
  dependencies:
@@ -246,24 +256,25 @@ dependencies:
246
256
  - linux
247
257
  version: 2.4.2
248
258
  espressif/wifi_remote_over_eppp:
249
- component_hash: 06d8bc15348bbd21f1390daace36ed5adcf6026c93c5b69decc55fa04df2711a
259
+ component_hash: 1fd6968af20f0b19e421f6b519b0a8caf81d689afc3783b564c28559e45f66ef
250
260
  dependencies:
251
- - name: idf
252
- require: private
253
- version: '>=5.3'
254
261
  - name: espressif/eppp_link
255
262
  registry_url: https://components.espressif.com
256
263
  require: private
257
264
  version: '>=0.1'
265
+ - name: idf
266
+ require: private
267
+ version: '>=5.3'
258
268
  source:
259
269
  registry_url: https://components.espressif.com
260
270
  type: service
261
- version: 0.3.2
271
+ version: 0.3.3
262
272
  idf:
263
273
  source:
264
274
  type: idf
265
- version: 6.0.1
275
+ version: 6.0.2
266
276
  direct_dependencies:
277
+ - 78/esp-opus
267
278
  - espressif/esp_codec_dev
268
279
  - espressif/esp_hosted
269
280
  - espressif/esp_peer
@@ -271,6 +282,6 @@ direct_dependencies:
271
282
  - espressif/esp_websocket_client
272
283
  - espressif/esp_wifi_remote
273
284
  - idf
274
- manifest_hash: afc8546142bad15c6c335b095a561747a7035d5ac98642619b474a126638d656
285
+ manifest_hash: cbd2c7f79dc58c79ef9f0429b7da2795e86e2560fff698b6ff4064e4bd3fd883
275
286
  target: esp32p4
276
287
  version: 3.0.0
@@ -0,0 +1,10 @@
1
+ BasedOnStyle: LLVM
2
+ IndentWidth: 2
3
+ ColumnLimit: 100
4
+ PointerAlignment: Left
5
+ SeparateDefinitionBlocks: Always
6
+ AllowShortFunctionsOnASingleLine: None
7
+ AllowShortIfStatementsOnASingleLine: Never
8
+ AllowShortLoopsOnASingleLine: false
9
+ AllowShortBlocksOnASingleLine: Never
10
+ InsertBraces: true
@@ -9,14 +9,21 @@ The board uses an ESP32-S3R8 with 16 MB QIO flash and 8 MB octal PSRAM.
9
9
  QSPI bus. The application renders a rectangular framebuffer; the physical
10
10
  circular panel hides its corners. The default CSS device pixel ratio is 1.5.
11
11
  - CST820B capacitive touch on the shared I2C bus, with its interrupt on GPIO13.
12
- - The blue KEYB button on GPIO1 follows the shared launcher/back/settings
13
- button policy. The yellow KEYA button on GPIO2 is not mapped yet.
12
+ - Yellow KEYA (GPIO2) and blue KEYB (GPIO1) send standard Gea key events:
13
+ ArrowLeft and ArrowRight. Holding both for 500 ms sends Escape.
14
+ - BMI270 acceleration and gyroscope through the shared sensor binding.
15
+ - ES8311 speaker and microphone through Gea's audio engine and media capture.
16
+ - M5PM1 battery telemetry through `Battery.level()` and `Battery.charging()`.
17
+ - RX8130CE clock through `Clock.epochMs()` and `Clock.setEpochMs()`.
18
+ - M5IOE1 vibration through `Haptics.vibrate()`.
14
19
  - Native USB Serial/JTAG for firmware flashing, logs and device control.
15
20
  - M5PM1 and M5IOE1 control needed to power and reset the display and touch.
16
21
 
17
- Audio, battery telemetry, BMI270 IMU, RX8130CE RTC and vibration are not
18
- integrated. Their presence on the board does not imply working Gea APIs;
19
- the target currently uses unsupported audio and sensor facades.
22
+ The factory-style `examples/apps/m5-stopwatch` application is written in
23
+ TypeScript/JSX. Its badge portal uses the shared HTTP and Wi-Fi APIs, settings
24
+ use `localStorage`, and its FFT runs in a TypeScript audio worklet. It has no
25
+ application-owned native sources or compiler plugin. These new hardware paths
26
+ are undergoing device validation; the measurement below is for bouncing balls.
20
27
 
21
28
  ## Register and run
22
29
 
@@ -62,10 +69,8 @@ detected CST820 at 0x15. Ten one-second production frame windows averaged
62
69
  differed at 25,188 pixels, confirming advancing animation. Capture transfers
63
70
  pause rendering, so their on-screen FPS labels are not benchmark samples.
64
71
 
65
- The firmware used the workspace's shared `compiler/dist`. Rebuilding compiler
66
- source was blocked by existing architecture violations in `segment-scopes.ts`
67
- and its test; the compiler source rebuild was not verified. Physical touch and
68
- button interactions were not exercised during this bring-up.
72
+ The firmware used the workspace's shared `compiler/dist`. Physical touch and
73
+ button interactions were not exercised during that initial bring-up.
69
74
 
70
75
  ## Hardware references
71
76
 
@@ -1,4 +1,14 @@
1
1
  dependencies:
2
+ espressif/cjson:
3
+ component_hash: e788323270d90738662d66fffa910bfe1fba019bba087f01557e70c40485b469
4
+ dependencies:
5
+ - name: idf
6
+ require: private
7
+ version: '>=5.0'
8
+ source:
9
+ registry_url: https://components.espressif.com/
10
+ type: service
11
+ version: 1.7.19~2
2
12
  espressif/cmake_utilities:
3
13
  component_hash: 351350613ceafba240b761b4ea991e0f231ac7a9f59a9ee901f751bddc0bb18f
4
14
  dependencies:
@@ -9,6 +19,16 @@ dependencies:
9
19
  registry_url: https://components.espressif.com
10
20
  type: service
11
21
  version: 0.5.3
22
+ espressif/esp_codec_dev:
23
+ component_hash: 4779f31a3ba3f9b38aee1afe6ccb9ba8f6108dc3a6e77d39d7d714e9a215371b
24
+ dependencies:
25
+ - name: idf
26
+ require: private
27
+ version: '>=4.0'
28
+ source:
29
+ registry_url: https://components.espressif.com/
30
+ type: service
31
+ version: 1.6.2
12
32
  espressif/esp_lcd_co5300:
13
33
  component_hash: 1a5cbaa0069c3c72c238e5a1eb32ec9dd390ec1c7c46b24bf44b9037f2fe6c56
14
34
  dependencies:
@@ -23,13 +43,46 @@ dependencies:
23
43
  registry_url: https://components.espressif.com/
24
44
  type: service
25
45
  version: 2.2.0
46
+ espressif/esp_new_jpeg:
47
+ component_hash: e1e7e6991193c41ed6c9fc386702aa7821433319e7aa9c3147cd3236310cd69c
48
+ dependencies: []
49
+ source:
50
+ registry_url: https://components.espressif.com/
51
+ type: service
52
+ targets:
53
+ - esp32
54
+ - esp32s2
55
+ - esp32s3
56
+ - esp32s31
57
+ - esp32p4
58
+ - esp32c2
59
+ - esp32c3
60
+ - esp32c5
61
+ - esp32c6
62
+ - esp32c61
63
+ - esp32h4
64
+ version: 1.0.2
65
+ espressif/esp_websocket_client:
66
+ component_hash: dc00233af846f3a744ada283a300e0d586040aadc3ee67361645ecdce4523672
67
+ dependencies:
68
+ - name: idf
69
+ require: private
70
+ version: '>=5.0'
71
+ source:
72
+ registry_url: https://components.espressif.com/
73
+ type: service
74
+ version: 1.8.0
26
75
  idf:
27
76
  source:
28
77
  type: idf
29
78
  version: 6.0.2
30
79
  direct_dependencies:
80
+ - espressif/cjson
81
+ - espressif/esp_codec_dev
31
82
  - espressif/esp_lcd_co5300
83
+ - espressif/esp_new_jpeg
84
+ - espressif/esp_websocket_client
32
85
  - idf
33
- manifest_hash: 61fc406a7f3d060e551f42682aec7f042f7052fb995e5cb53cdf95b2d815b0af
86
+ manifest_hash: 02c7259f3d5f2179412ff68df686b5cba43726cc6275d56ec266f4d1e9e75cca
34
87
  target: esp32s3
35
88
  version: 3.0.0
@@ -1,7 +1,7 @@
1
1
  set(GEA_BOARD_COMPONENT_DIR "${CMAKE_CURRENT_LIST_DIR}")
2
2
  set(GEA_BOARD_TARGET_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
3
3
  set(GEA_EMBEDDED_CPP_BOARD "esp32-s3-m5stack-stopwatch")
4
- set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.5")
4
+ set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.5" CACHE STRING "Logical CSS px to physical pixel scale for this board")
5
5
  set(GEA_EMBEDDED_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../..")
6
6
  cmake_path(ABSOLUTE_PATH GEA_EMBEDDED_ROOT NORMALIZE)
7
7
  include("${GEA_EMBEDDED_ROOT}/targets/esp32/gea_framework.cmake")
@@ -12,25 +12,28 @@ set(GEA_BOARD_QSPI_PCLK_HZ 80000000)
12
12
  set(GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH 1)
13
13
  set(GEA_BOARD_PARTIAL_PAD_X 0)
14
14
  set(GEA_BOARD_PARTIAL_PAD_Y 0)
15
- set(GEA_BOARD_EXTRA_REQUIRES bootloader_support esp_psram)
15
+ set(GEA_BOARD_EXTRA_REQUIRES bootloader_support esp_psram esp_codec_dev)
16
16
  set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS
17
17
  GEA_BOARD_PREPARE_DISPLAY_PANEL=1
18
- GEA_BOARD_LAUNCHER_BUTTON_GPIO=1
18
+ GEA_BOARD_SPEAKER_POWER=1
19
+ GEA_EMBEDDED_RUNTIME_TASK_STACK_BYTES=32768
20
+ GEA_EMBEDDED_RUNTIME_TASK_STACK_EXTERNAL=1
19
21
  GEA_EMBEDDED_CO5300_STOPWATCH_INIT=1
20
22
  GEA_EMBEDDED_CO5300_PANEL_X_GAP=6
21
23
  GEA_EMBEDDED_CO5300_PANEL_Y_GAP=0
22
24
  )
23
25
 
24
26
  # Keep the application pipeline shared; only the native board wiring differs.
25
- # Ancillary audio, battery telemetry and IMU APIs retain the explicit unsupported
26
- # facades until their StopWatch power/control paths are integrated.
27
+ # Board bindings supply sensors, power, audio and buttons to every Gea application.
27
28
  set(GEA_BOARD_PLATFORM_SOURCES
28
29
  "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/app_main.cpp"
29
30
  "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/i2c.cpp"
30
- "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/launcher_button.cpp"
31
+ "${CMAKE_CURRENT_LIST_DIR}/buttons.cpp"
31
32
  "${CMAKE_CURRENT_LIST_DIR}/touch.cpp"
32
33
  "${CMAKE_CURRENT_LIST_DIR}/panel_reset.cpp"
33
- "${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-elecrow-rotary-2.1/main/platform_stubs.cpp"
34
+ "${CMAKE_CURRENT_LIST_DIR}/power.cpp"
35
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/audio/es8311.cpp"
36
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/imu/bmi270.cpp"
34
37
  "${GEA_CHIPS}/displays/co5300/co5300.cpp"
35
38
  "${GEA_EMBEDDED_ROOT}/targets/esp32/display.cpp"
36
39
  "${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/displays/co5300.cpp"
@@ -0,0 +1,80 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ #include "driver/gpio.h"
3
+ #include "esp_log.h"
4
+ #include "esp_timer.h"
5
+ #include "freertos/FreeRTOS.h"
6
+ #include "freertos/task.h"
7
+ #include "input.h"
8
+
9
+ namespace {
10
+
11
+ TaskHandle_t buttonTask = nullptr;
12
+
13
+ void pollButtons(void*) {
14
+ int previous = 0;
15
+ int rawPrevious = 0;
16
+ int stable = 0;
17
+ int64_t chordAt = 0;
18
+ bool chordSent = false;
19
+ for (;;) {
20
+ const int raw = (!gpio_get_level(GPIO_NUM_2) ? 1 : 0) | (!gpio_get_level(GPIO_NUM_1) ? 2 : 0);
21
+ stable = raw == rawPrevious ? stable + 1 : 0;
22
+ rawPrevious = raw;
23
+ if (stable >= 2) {
24
+ const auto now = esp_timer_get_time();
25
+ if (raw == 3) {
26
+ if (previous != 3) {
27
+ chordAt = now;
28
+ }
29
+ if (!chordSent && now - chordAt >= 500000) {
30
+ gea::framework::input::queueKeyDown(27); // Escape / factory home chord.
31
+ chordSent = true;
32
+ }
33
+ }
34
+ for (int mask = 1; mask <= 2; mask <<= 1) {
35
+ const int code = mask == 1 ? 37 : 39;
36
+ if ((raw & mask) && !(previous & mask) && !chordSent) {
37
+ gea::framework::input::queueKeyDown(code);
38
+ }
39
+ if (!(raw & mask) && (previous & mask)) {
40
+ gea::framework::input::queueKeyUp(code);
41
+ }
42
+ }
43
+ if (raw == 0) {
44
+ chordSent = false;
45
+ }
46
+ previous = raw;
47
+ }
48
+ vTaskDelay(pdMS_TO_TICKS(10));
49
+ }
50
+ }
51
+
52
+ } // namespace
53
+
54
+ namespace gea::platform::board {
55
+
56
+ void startButtons() {
57
+ if (buttonTask) {
58
+ return;
59
+ }
60
+ gpio_config_t config{};
61
+ config.pin_bit_mask = (1ULL << GPIO_NUM_1) | (1ULL << GPIO_NUM_2);
62
+ config.mode = GPIO_MODE_INPUT;
63
+ config.pull_up_en = GPIO_PULLUP_ENABLE;
64
+ config.pull_down_en = GPIO_PULLDOWN_DISABLE;
65
+ config.intr_type = GPIO_INTR_DISABLE;
66
+ ESP_ERROR_CHECK(gpio_config(&config));
67
+ if (xTaskCreate(pollButtons, "stopwatch_keys", 3072, nullptr, 10, &buttonTask) != pdPASS) {
68
+ ESP_LOGE("stopwatch_keys", "Failed to create button task");
69
+ return;
70
+ }
71
+ ESP_LOGI("stopwatch_keys", "A(GPIO2)=ArrowLeft B(GPIO1)=ArrowRight A+B(500ms)=Escape");
72
+ }
73
+
74
+ } // namespace gea::platform::board
75
+
76
+ namespace gea::platform::esp32::apps {
77
+
78
+ void startLauncherButtonTask() { gea::platform::board::startButtons(); }
79
+
80
+ } // namespace gea::platform::esp32::apps
@@ -1,4 +1,22 @@
1
1
  dependencies:
2
2
  espressif/esp_lcd_co5300: '^2.0.2'
3
+ espressif/esp_codec_dev: '^1.4.0'
4
+ espressif/esp_new_jpeg: '==1.0.2'
5
+ espressif/esp_h264:
6
+ version: '==1.4.1'
7
+ rules:
8
+ - if: '$GEA_EMBEDDED_CAPABILITY_H264 == 1'
9
+ espressif/esp_audio_codec:
10
+ version: '^2.6.2'
11
+ rules:
12
+ - if: '$GEA_EMBEDDED_CAPABILITY_RTC == 1'
13
+ espressif/esp_websocket_client:
14
+ version: '^1.4'
15
+ rules:
16
+ - if: '$GEA_EMBEDDED_CAPABILITY_NETWORK == 1'
17
+ espressif/esp_peer:
18
+ version: '^1.4'
19
+ rules:
20
+ - if: '$GEA_EMBEDDED_CAPABILITY_RTC == 1'
3
21
  idf:
4
22
  version: '>=5.3'
@@ -1,33 +1,54 @@
1
1
  #pragma once
2
2
 
3
3
  #include "driver/gpio.h"
4
+ #include "driver/i2s_std.h"
4
5
  #include "driver/spi_master.h"
5
6
  #include "panel_power.h"
6
7
 
7
8
  namespace gea::platform::board {
8
9
 
9
- struct I2cBusConfig { gpio_num_t sda; gpio_num_t scl; };
10
+ struct I2cBusConfig {
11
+ gpio_num_t sda;
12
+ gpio_num_t scl;
13
+ };
14
+
10
15
  struct Co5300DisplayConfig {
11
- spi_host_device_t spiHost;
12
- gpio_num_t cs;
13
- gpio_num_t pclk;
14
- gpio_num_t data0;
15
- gpio_num_t data1;
16
- gpio_num_t data2;
17
- gpio_num_t data3;
18
- gpio_num_t reset;
19
- gpio_num_t te;
16
+ spi_host_device_t spiHost;
17
+ gpio_num_t cs;
18
+ gpio_num_t pclk;
19
+ gpio_num_t data0;
20
+ gpio_num_t data1;
21
+ gpio_num_t data2;
22
+ gpio_num_t data3;
23
+ gpio_num_t reset;
24
+ gpio_num_t te;
25
+ };
26
+
27
+ struct Es8311AudioConfig {
28
+ int i2sPort;
29
+ gpio_num_t mclk;
30
+ gpio_num_t bclk;
31
+ gpio_num_t ws;
32
+ gpio_num_t dout;
33
+ gpio_num_t din;
34
+ gpio_num_t powerAmplifier;
35
+ };
36
+
37
+ bool setSpeakerPower(bool enabled);
38
+ void startButtons();
39
+
40
+ struct Cst820TouchConfig {
41
+ gpio_num_t interrupt;
20
42
  };
21
- struct Cst820TouchConfig { gpio_num_t interrupt; };
22
43
 
23
44
  // https://docs.m5stack.com/en/core/StopWatch
24
45
  // OLED and touch resets are M5IOE1 outputs, not ESP32 GPIOs.
25
46
  inline constexpr I2cBusConfig i2c{GPIO_NUM_47, GPIO_NUM_48};
26
- inline constexpr Co5300DisplayConfig display{
27
- SPI2_HOST, GPIO_NUM_39, GPIO_NUM_40,
28
- GPIO_NUM_41, GPIO_NUM_42, GPIO_NUM_46, GPIO_NUM_45,
29
- GPIO_NUM_NC, GPIO_NUM_38
30
- };
47
+ inline constexpr Co5300DisplayConfig display{SPI2_HOST, GPIO_NUM_39, GPIO_NUM_40,
48
+ GPIO_NUM_41, GPIO_NUM_42, GPIO_NUM_46,
49
+ GPIO_NUM_45, GPIO_NUM_NC, GPIO_NUM_38};
31
50
  inline constexpr Cst820TouchConfig touch{GPIO_NUM_13};
51
+ inline constexpr Es8311AudioConfig audio{I2S_NUM_AUTO, GPIO_NUM_18, GPIO_NUM_17, GPIO_NUM_15,
52
+ GPIO_NUM_21, GPIO_NUM_16, GPIO_NUM_NC};
32
53
 
33
- } // namespace gea::platform::board
54
+ } // namespace gea::platform::board