Getting up and running with two sets of code and a neopixel

Hello hello,

I'm currently working on this project and I would very grateful for some help with understanding the programming.

This is only my third project and up until now i have been doing very simple things. I've never programmed a neopixel before! I have got some very basic questions...

There's two sets of code associated with the project and I don't know how to get them to talk to each other. It says: 'Copy the code and place it in the same file directory as the main code, calling the file interrupt.ino.'

Dumb question number one: I have saved this in the same folder as my Arduino library. Is that right? I've also installed the neopixel library.

What do I do next? I've tried just running the two sets of code in IDE and get the error in the screen shot attached. Please help!

It says: 'Copy the code and place it in the same file directory as the main code, calling the file interrupt.ino.'

So why have you

saved this in the same folder as my Arduino library.

Where are the library files located ?

I thought that was what I was doing. What should I have done? Both files are saved in the location pictured.

In general, libraries that are not part of the Arduino system should be placed in a folder in the libraries folder of your sketch folder. They are then accessible to all Arduino sketches using this form of inclusion
#include <theLibraryname.h> There are exceptions to this but it is the safe option.

You have a folder named Pulse_sensor.ino which is presumably in your sketches folder but it is impossible to hell from the screen shot. It is not normal for the folder name to have an extension. You also have a folder named interupt.ino in the same location. Again, the folder name is unusual.

What the instructions say is to put the file named interrupt.ino (note the spelling) in the same folder as the main sketch. You have not done this.

If you do as instructed then when you open the main sketch in the IDE there will also be a second tab in the editor named interrupt.ino and the main sketch will be able to access its contents.

Suggested actions :
(1) Check where sketches are saved by default and put the Pulse_sensor.ino file in a folder named Pulse_sensor if it is not already there
(2) Move the interupt.ino file into the Pulse_sensor folder
(3) Check where any library files needed by the program are installed and move them to folders in the sketch directory libraries folder if they are not already there