From cb347c0473291fb60fca0feafae356cdaa99b135 Mon Sep 17 00:00:00 2001 From: Nguyen Le Y Date: Fri, 28 Mar 2025 10:16:46 +0700 Subject: [PATCH] Update example 8 Read SPO2 Update the Pin for Pulse LED for avoid the reset when using strapping pin in ESP32 --- examples/Example8_SPO2/Example8_SPO2.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/Example8_SPO2/Example8_SPO2.ino b/examples/Example8_SPO2/Example8_SPO2.ino index 88250ff..6660280 100644 --- a/examples/Example8_SPO2/Example8_SPO2.ino +++ b/examples/Example8_SPO2/Example8_SPO2.ino @@ -49,8 +49,11 @@ int32_t spo2; //SPO2 value int8_t validSPO2; //indicator to show if the SPO2 calculation is valid int32_t heartRate; //heart rate value int8_t validHeartRate; //indicator to show if the heart rate calculation is valid - +#ifndef CONFIG_IDF_TARGET_ESP32 byte pulseLED = 11; //Must be on PWM pin +#else +byte pulseLED = 2; // Connected to the Onboard LED- Pin11 is strapping pin on ESP32 +#endif byte readLED = 13; //Blinks with each data read void setup()