From 9e8f862bae51e3191923e32283be1d6ac2351470 Mon Sep 17 00:00:00 2001 From: pennam Date: Wed, 12 Mar 2025 14:31:01 +0100 Subject: [PATCH 1/3] SocketHelpers: ping, fix build for generic M4 --- libraries/SocketWrapper/src/SocketHelpers.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/SocketWrapper/src/SocketHelpers.cpp b/libraries/SocketWrapper/src/SocketHelpers.cpp index b7e39b42c..9360f9988 100644 --- a/libraries/SocketWrapper/src/SocketHelpers.cpp +++ b/libraries/SocketWrapper/src/SocketHelpers.cpp @@ -142,11 +142,14 @@ int arduino::MbedSocketClass::ping(SocketAddress &socketAddress, uint8_t ttl, ui { /* ttl is not supported by mbed ICMPSocket. Default value used is 255 */ (void)ttl; + int response = -1; +#if MBED_CONF_LWIP_RAW_SOCKET_ENABLED ICMPSocket s; s.set_timeout(timeout); s.open(getNetwork()); - int response = s.ping(socketAddress, timeout); + response = s.ping(socketAddress, timeout); s.close(); +#endif return response; } From 1b2ddf36e88dbf8892377caf42b2a4e2b6099500 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Thu, 27 Mar 2025 17:08:38 -0500 Subject: [PATCH 2/3] feat: Opta pin names to match serigraphy Enables a user to intuit the pin name of the input pins, without having to reference this file. --- variants/OPTA/pins_arduino.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/variants/OPTA/pins_arduino.h b/variants/OPTA/pins_arduino.h index 301ac30aa..107190dc8 100644 --- a/variants/OPTA/pins_arduino.h +++ b/variants/OPTA/pins_arduino.h @@ -68,6 +68,16 @@ static const uint8_t A6 = PIN_A6; static const uint8_t A7 = PIN_A7; #define ADC_RESOLUTION 12 +// Pin mapping to match serigraphy +static const uint8_t I1 = PIN_A0; +static const uint8_t I2 = PIN_A1; +static const uint8_t I3 = PIN_A2; +static const uint8_t I4 = PIN_A3; +static const uint8_t I5 = PIN_A4; +static const uint8_t I6 = PIN_A5; +static const uint8_t I7 = PIN_A6; +static const uint8_t I8 = PIN_A7; + // Digital pins // ----------- #define D0 (0u) From 84ba5612c8ba30814d1a661851d41c8c094ffb9c Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis Date: Fri, 18 Apr 2025 16:01:51 +0200 Subject: [PATCH 3/3] h7 video + lvgl: remove unused buffer --- libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp b/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp index 2bb02ebc9..68ee9b01f 100644 --- a/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp +++ b/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp @@ -111,10 +111,6 @@ int Arduino_H7_Video::begin() { if (buf1 == NULL) { return 2; /* Insuff memory err */ } - static lv_color_t * buf2 = (lv_color_t*)malloc((width() * height() / 10)); /* Declare a buffer for 1/10 screen size */ - if (buf2 == NULL) { - return 2; /* Insuff memory err */ - } lv_display_t *display; if(_rotated) {