Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.01 KB | None | 0 0
  1.  
  2.  
  3. In file included from  fluidLevel.cpp:1:
  4.  fluidLevel.h:4:1: error: C++ requires a type specifier for all declarations
  5. pinMode(2, INPUT);                      // set fluid level switch input pin and mode
  6. ^~~~~~~
  7.  fluidLevel.h:4:12: error: use of undeclared identifier 'INPUT'
  8. pinMode(2, INPUT);                      // set fluid level switch input pin and mode
  9.            ^
  10.  fluidLevel.h:8:2: error: invalid preprocessing directive
  11. #endfi
  12.  ^
  13.  fluidLevel.h:1:2: error: unterminated conditional directive
  14. #ifndef FLUIDLEVEL_H
  15.  ^
  16.  fluidLevel.cpp:3:6: error: functions that differ only in their return type cannot be overloaded
  17. void getFluidLevel() {
  18.      ^
  19.  fluidLevel.h:6:5: note: previous declaration is here
  20. int getFluidLevel(void);        // function prototype
  21.     ^
  22.  fluidLevel.cpp:4:9: error: use of undeclared identifier 'digitalRead'
  23.         return digitalRead(2);  // get fluid level switch value and return
  24.                ^
  25. 6 errors generated.
  26.  
  27.  
  28. Blog | About | The Team | Careers | Open Source | FAQ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement