I'm trying to use the bpm to serial monitor example in pulsesensor library, i edited it to upload to an i2c lcd but i keep getting this errorC:\Users\Wallie\AppData\Local\Temp\ccpmQpEd.ltrans0.ltrans.o: In function begin': c:\Users\Wallie\Documents\Arduino\libraries\PulseSensor_Playground\src/PulseSensorPlayground.cpp:55: undefined reference to PulseSensorPlayground::UsingInterrupts'
c:\Users\Wallie\Documents\Arduino\libraries\PulseSensor_Playground\src/PulseSensorPlayground.cpp:56: undefined reference to `PulseSensorPlaygroundSetupInterrupt()'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
THIS IS MY CODE
```
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <PulseSensorPlayground.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
const int PulseWire = 0;
const int LED = LED_BUILTIN;
int Threshold = 550;
PulseSensorPlayground pulseSensor;
void setup() {
lcd.begin(); // initialize the lcd
Serial.begin(9600);
pulseSensor.analogInput(PulseWire);
pulseSensor.blinkOnPulse(LED);
pulseSensor.setThreshold(Threshold);
if (pulseSensor.begin()) {
Serial.println("We created a pulseSensor Object !");
lcd.print("PulseSensor Ready");
}
}
void loop() {
if (pulseSensor.sawStartOfBeat()) {
int myBPM = pulseSensor.getBeatsPerMinute();
Serial.println("♥ A HeartBeat Happened !");
Serial.print("BPM: ");
Serial.println(myBPM);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Heartbeat detected");
lcd.setCursor(0,1);
lcd.print("BPM: ");
lcd.print(myBPM);
}
delay(20);
}
Not sure why you think that this relates to "Avrdude, stk500, Bootloader issues". You have a compilation / linker problem; hence moved to a more suitable section on the forum.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.