Compiling error "does not a type.."

Kim Bum's picture

Offline

Joined: Jan 02, 2019

Replies: 0
Compiling error "does not a type.."
January 2, 2019 - 4:04am

i have to xompile the code but it was failed, what is the solution. i done to added the library thanks

sketch_jan02b:5: error: 'PulseSensorPlayground' does not name a type
sketch_jan02b.ino: In function 'void setup()':
sketch_jan02b:33: error: 'pulseSensor' was not declared in this scope
sketch_jan02b.ino: In function 'void getReadings()':
sketch_jan02b:133: error: 'pulseSensor' was not declared in this scope

AISHA's picture

Offline

Joined: Sep 07, 2017

Replies: 251
Which code are you talking about?
January 5, 2019 - 2:20pm

I am not sure whih program you are talking about. But I think the prolem is beacuse you have not added the pulse sensor librarey to your arduino IDE