Skip to content

Commit

Permalink
Merge pull request #160 from biomurph/master
Browse files Browse the repository at this point in the history
fixed compile error to clarify error output message
  • Loading branch information
biomurph authored Jan 13, 2023
2 parents 2c3d63b + 7545b7a commit 3124df8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/PulseSensor_Speaker/PulseSensor_Speaker.ino
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void loop() {
*/
if (pulseSensor.sawStartOfBeat()) {
pulseSensor.outputBeat();
tone(PIN_SPEAKER,1047); // tone(pin,frequency)
tone(PIN_SPEAKER,932); // tone(pin,frequency)
}

/*
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=PulseSensor Playground
version=1.6.1
version=1.6.2
author=Joel Murphy, Yury Gitman, Brad Needham
maintainer=Joel Murphy, Yury Gitman
sentence=Support at PulseSensor.com
Expand Down
9 changes: 7 additions & 2 deletions src/utility/Interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
// The name is long to avoid collisions with Sketch and Library symbols.
#if defined(__arc__)||(ARDUINO_SAMD_MKR1000)||(ARDUINO_SAMD_MKRZERO)||(ARDUINO_SAMD_ZERO)\
||(ARDUINO_ARCH_SAMD)||(ARDUINO_ARCH_STM32)||(ARDUINO_STM32_STAR_OTTO)||(ARDUINO_ARCH_NRF5)\
||(ARDUINO_ARCH_NRF52)||(ARDUINO_ARCH_NRF52840)||(ARDUINO_NANO33BLE)
||(ARDUINO_ARCH_NRF52)||(ARDUINO_ARCH_NRF52840)||(ARDUINO_NANO33BLE)||(ARDUINO_ARCH_RP2040)

#define DISABLE_PULSE_SENSOR_INTERRUPTS
#define ENABLE_PULSE_SENSOR_INTERRUPTS
Expand Down Expand Up @@ -236,8 +236,13 @@ boolean PulseSensorPlaygroundSetupInterrupt() {
bitSet(TIMSK,6); // Enable interrupt on match between TCNT1 and OCR1A
ENABLE_PULSE_SENSOR_INTERRUPTS;
return true;
#endif

#else
#if defined(__arc__)||(ARDUINO_SAMD_MKR1000)||(ARDUINO_SAMD_MKRZERO)||(ARDUINO_SAMD_ZERO)\
||(ARDUINO_ARCH_SAMD)||(ARDUINO_ARCH_STM32)||(ARDUINO_STM32_STAR_OTTO)||(ARDUINO_ARCH_NRF5)\
||(ARDUINO_ARCH_NRF52)||(ARDUINO_ARCH_NRF52840)||(ARDUINO_NANO33BLE)||(ARDUINO_ARCH_RP2040)

#error "Unsupported Board Selected! Try Using the example: PulseSensor_BPM_Alternative.ino"
return false; // unknown or unsupported platform.
#endif

Expand Down

0 comments on commit 3124df8

Please sign in to comment.