Error when i compile sketch
-
When I want to compile the sketch so send sensor data to my RPi i get this error:
BinarySwitchSensor:14: error: 'Bounce' does not name a type
BinarySwitchSensor.ino: In function 'void setup()':
BinarySwitchSensor:27: error: 'debouncer' was not declared in this scope
BinarySwitchSensor.ino: In function 'void loop()':
BinarySwitchSensor:40: error: 'debouncer' was not declared in this scope
What can i do? -
When I want to compile the sketch so send sensor data to my RPi i get this error:
BinarySwitchSensor:14: error: 'Bounce' does not name a type
BinarySwitchSensor.ino: In function 'void setup()':
BinarySwitchSensor:27: error: 'debouncer' was not declared in this scope
BinarySwitchSensor.ino: In function 'void loop()':
BinarySwitchSensor:40: error: 'debouncer' was not declared in this scope
What can i do? -
No, I added them! Under Examples I can see the library.
But theres something wrong with the include of the Bounce2.h, Sensor.h and RF24.h. They dont change to orange like EEPROM.h and SPI.h does.
Its the same problem in every example sketch -
I found the solution.
I copied all the libraries directly to the libraries folder of the Arduino IDE
now it works!I did that too, for arduino 1.0.1 under debian 7.5:
In file included from /usr/share/arduino/libraries/RF24/RF24.h:788:0,
from SerialGateway.cpp:26:
/usr/share/arduino/libraries/RF24/RF24.c:27:21: fatal error: spi/spi.h: Aucun fichier ou dossier de ce type
compilation terminated.when downloading 1.0.5 (following) I have:
SerialGateway.ino:31:25: fatal error: avr/progmem.h: Aucun fichier ou dossier de ce typewhen running 1.5.6r2 or nightly I have:
SerialGateway:41: error: ‘Gateway’ does not name a type
SerialGateway:44: error: ‘MAX_RECEIVE_LENGTH’ was not declared in this scope
SerialGateway.ino: In function ‘void setup()’:
SerialGateway:50: error: ‘gw’ was not declared in this scope
SerialGateway:57: error: ‘MsTimer2’ has not been declared
SerialGateway:58: error: ‘MsTimer2’ has not been declared
SerialGateway:60: error: ‘PCintPort’ has not been declared
SerialGateway.ino: In function ‘void loop()’:
SerialGateway:66: error: ‘gw’ was not declared in this scope
SerialGateway.ino: In function ‘void startInclusionInterrupt()’:
SerialGateway:73: error: ‘gw’ was not declared in this scope
SerialGateway.ino: In function ‘void ledTimersInterrupt()’:
SerialGateway:77: error: ‘gw’ was not declared in this scope
SerialGateway.ino: In function ‘void checkSerialInput()’:
SerialGateway:84: error: ‘gw’ was not declared in this scope
SerialGateway:84: error: ‘inputString’ was not declared in this scope
SerialGateway.ino: In function ‘void serialEvent()’:
SerialGateway:102: error: ‘MAX_RECEIVE_LENGTH’ was not declared in this scope
SerialGateway:104: error: ‘inputString’ was not declared in this scope
SerialGateway:108: error: ‘inputString’ was not declared in this scope -
Hello,
good news, it works but here is the solution:
-
ide 10.3 to 1.0.5 fails to work.
-
1.5.6r2 works but the sketch directory is now called Arduino, and then it works...just select port to ttyACM0 and not COM1 !
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login