We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e673a4 commit 86cd395Copy full SHA for 86cd395
examples/Example8_SPO2/Example8_SPO2.ino
@@ -34,10 +34,15 @@ MAX30105 particleSensor;
34
35
#define MAX_BRIGHTNESS 255
36
37
+#if defined(ARDUINO_AVR_UNO)
38
//Arduino Uno doesn't have enough SRAM to store 100 samples of IR led data and red led data in 32-bit format
39
//To solve this problem, 16-bit MSB of the sampled data will be truncated. Samples become 16-bit data.
40
uint16_t irBuffer[100]; //infrared LED sensor data
41
uint16_t redBuffer[100]; //red LED sensor data
42
+#else
43
+uint32_t irBuffer[100]; //infrared LED sensor data
44
+uint32_t redBuffer[100]; //red LED sensor data
45
+#endif
46
47
int32_t bufferLength; //data length
48
int32_t spo2; //SPO2 value
0 commit comments