Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from fluidLevel.cpp:1:
- fluidLevel.h:4:1: error: C++ requires a type specifier for all declarations
- pinMode(2, INPUT); // set fluid level switch input pin and mode
- ^~~~~~~
- fluidLevel.h:4:12: error: use of undeclared identifier 'INPUT'
- pinMode(2, INPUT); // set fluid level switch input pin and mode
- ^
- fluidLevel.h:8:2: error: invalid preprocessing directive
- #endfi
- ^
- fluidLevel.h:1:2: error: unterminated conditional directive
- #ifndef FLUIDLEVEL_H
- ^
- fluidLevel.cpp:3:6: error: functions that differ only in their return type cannot be overloaded
- void getFluidLevel() {
- ^
- fluidLevel.h:6:5: note: previous declaration is here
- int getFluidLevel(void); // function prototype
- ^
- fluidLevel.cpp:4:9: error: use of undeclared identifier 'digitalRead'
- return digitalRead(2); // get fluid level switch value and return
- ^
- 6 errors generated.
- Blog | About | The Team | Careers | Open Source | FAQ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement