SHARE
TWEET

Arduino compile error

a guest Feb 13th, 2016 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In file included from /home/marcel/dev/Arduino/encoders/main.ino:1:0:
  2. /home/marcel/dev/Arduino/encoders/./Encoders.c: In static member function ‘static void Encoders::switchPressedExt0()’:
  3. /home/marcel/dev/Arduino/encoders/./Encoders.c:7:33: error: ‘NULL’ was not declared in this scope
  4.    if(Encoders::instances [0] != NULL){
  5.                                  ^
  6. /home/marcel/dev/Arduino/encoders/./Encoders.c: In static member function ‘static void Encoders::switchPressedExt1()’:
  7. /home/marcel/dev/Arduino/encoders/./Encoders.c:13:34: error: ‘NULL’ was not declared in this scope
  8.    if (Encoders::instances [1] != NULL){
  9.                                   ^
  10. /home/marcel/dev/Arduino/encoders/./Encoders.c: In member function ‘void Encoders::begin(int)’:
  11. /home/marcel/dev/Arduino/encoders/./Encoders.c:21:23: error: ‘INPUT_PULLUP’ was not declared in this scope
  12.     pinMode (whichPin, INPUT_PULLUP);
  13.                        ^
  14. /home/marcel/dev/Arduino/encoders/./Encoders.c:21:35: error: ‘pinMode’ was not declared in this scope
  15.     pinMode (whichPin, INPUT_PULLUP);
  16.                                    ^
  17. /home/marcel/dev/Arduino/encoders/./Encoders.c:24:44: error: ‘CHANGE’ was not declared in this scope
  18.       attachInterrupt(0, switchPressedExt0, CHANGE);
  19.                                             ^
  20. /home/marcel/dev/Arduino/encoders/./Encoders.c:24:50: error: ‘attachInterrupt’ was not declared in this scope
  21.       attachInterrupt(0, switchPressedExt0, CHANGE);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top