From 9795c3c22e009796d3f1a283fc6aa1b3a8575e43 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Wed, 7 Jun 2023 11:47:55 +0200 Subject: [PATCH] ci: fix video examples (#692) * ci: remove portenta_lvgl examples * ci: add GigaDisplayTouch as additional lib * h7 video lib: add default constructor for other boards * ci: add giga target * ci: update giga target lib * ci: giga target * ci: fix indentation * ci: fix fqbn list * ci: remove h7 video examples for envie_m7 core m4 * ci: remove doom example for giga * ci: remove STM32H747_System examples for giga * ci: remove KernelDebug examples for giga --- .github/workflows/compile-examples.yml | 36 ++++++++++++++----- .../Arduino_H7_Video/src/Arduino_H7_Video.h | 2 ++ 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 146c34dec..80b4aeb50 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -39,6 +39,7 @@ jobs: - fqbn: arduino:mbed:nicla_sense - fqbn: arduino:mbed:nicla_vision - fqbn: arduino:mbed:opta + - fqbn: arduino:mbed:giga - fqbn: arduino:mbed:nicla_voice # compile only the examples compatible with each board @@ -55,16 +56,10 @@ jobs: - ~/Arduino/libraries/ArduinoBLE - board: fqbn: arduino:mbed:envie_m7:target_core=cm4 - additional-libraries: | - - name: lvgl - version: 8.3.5 - - name: ArduinoGraphics additional-sketch-paths: | - - libraries/doom - libraries/KernelDebug - libraries/Portenta_SDCARD - libraries/Portenta_SDRAM - - libraries/Arduino_H7_Video - libraries/RPC - board: fqbn: arduino:mbed:envie_m7 @@ -74,6 +69,7 @@ jobs: - name: MicroNMEA - name: ArduinoBLE - name: ArduinoGraphics + - name: Arduino_GigaDisplayTouch additional-sketch-paths: | - libraries/PDM - libraries/doom @@ -81,7 +77,6 @@ jobs: - libraries/MCUboot - libraries/Camera/examples/CameraCaptureRawBytes - libraries/Camera/examples/CameraMotionDetect - - libraries/Portenta_lvgl/examples/Portenta_lvgl - libraries/Portenta_SDCARD - libraries/Portenta_SDRAM - libraries/STM32H747_System @@ -136,6 +131,31 @@ jobs: - libraries/USBHID - libraries/USBMSD/examples/AccessFlashAsUSBDisk - libraries/WiFi + - board: + fqbn: arduino:mbed:giga + additional-libraries: | + - name: lvgl + version: 8.3.5 + - name: MicroNMEA + - name: ArduinoBLE + - name: ArduinoGraphics + - name: Arduino_GigaDisplayTouch + additional-sketch-paths: | + - libraries/PDM + - libraries/MCUboot + - libraries/Camera/examples/CameraCaptureRawBytes + - libraries/Camera/examples/CameraMotionDetect + - libraries/Portenta_SDCARD + - libraries/Portenta_SDRAM + - libraries/Arduino_H7_Video + - libraries/RPC + - libraries/ThreadDebug + - libraries/USBHID + - libraries/USBHOST + - libraries/USBMSD/examples/AccessFlashAsUSBDisk + - libraries/WiFi + - libraries/GSM + - ~/Arduino/libraries/ArduinoBLE - board: fqbn: arduino:mbed:nicla_voice additional-sketch-paths: | @@ -149,7 +169,7 @@ jobs: version: v0.9.6 - name: arduino-libg722 source-url: https://github.com/pschatzmann/arduino-libg722.git - + steps: - name: Checkout repository uses: actions/checkout@v2 diff --git a/libraries/Arduino_H7_Video/src/Arduino_H7_Video.h b/libraries/Arduino_H7_Video/src/Arduino_H7_Video.h index 2f54e1c83..9f05f5ea0 100644 --- a/libraries/Arduino_H7_Video/src/Arduino_H7_Video.h +++ b/libraries/Arduino_H7_Video/src/Arduino_H7_Video.h @@ -64,6 +64,8 @@ class Arduino_H7_Video Arduino_H7_Video(int width = 1024, int height = 768, H7DisplayShield &shield = USBCVideo); #elif defined(ARDUINO_GIGA) Arduino_H7_Video(int width = 800, int height = 480, H7DisplayShield &shield = GigaDisplayShield); +#else + Arduino_H7_Video(int width, int height, H7DisplayShield &shield); #endif /**