Error with Importing Library

Whenever I compile this code, it gives me "Error compiling for board Arudino/Genuino Uno

Code: #include <ArduinoRobot.h>
#include <Arduino_LCD.h>
#include <Compass.h>
#include <EasyTransfer2.h>
#include <EEPROM_I2C.h>
#include <Fat16.h>
#include <Fat16Config.h>
#include <Fat16mainpage.h>
#include <Fat16util.h>
#include <FatStructs.h>
#include <Multiplexer.h>
#include <SdCard.h>
#include <SdInfo.h>
#include <Squawk.h>
#include <SquawkSD.h>

void setup() {

}
void loop() {

}

Error Message:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp: In constructor ‘RobotControl::RobotControl()’:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:26:42: error: ‘LCD_CS’ was not declared in this scope

RobotControl::RobotControl():Arduino_LCD(LCD_CS,DC_LCD,RST_LCD){

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\keyboard.cpp: In member function ‘int8_t RobotControl::keyboardRead()’:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\keyboard.cpp:49:42: error: ‘KEY’ was not declared in this scope

lectura_pul = this->averageAnalogInput(KEY);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:26:49: error: ‘DC_LCD’ was not declared in this scope

RobotControl::RobotControl():Arduino_LCD(LCD_CS,DC_LCD,RST_LCD){

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:26:56: error: ‘RST_LCD’ was not declared in this scope

RobotControl::RobotControl():Arduino_LCD(LCD_CS,DC_LCD,RST_LCD){

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp: In member function ‘void RobotControl::begin()’:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:36:21: error: ‘MUXA’ was not declared in this scope

uint8_t MuxPins={MUXA,MUXB,MUXC,MUXD};

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:36:26: error: ‘MUXB’ was not declared in this scope

uint8_t MuxPins={MUXA,MUXB,MUXC,MUXD};

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:36:31: error: ‘MUXC’ was not declared in this scope

uint8_t MuxPins={MUXA,MUXB,MUXC,MUXD};

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:36:36: error: ‘MUXD’ was not declared in this scope

uint8_t MuxPins={MUXA,MUXB,MUXC,MUXD};

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:37:29: error: ‘MUX_IN’ was not declared in this scope

Multiplexer::begin(MuxPins,MUX_IN,4);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:40:10: error: ‘BUZZ’ was not declared in this scope

pinMode(BUZZ,OUTPUT);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\ArduinoRobot.cpp:43:2: error: ‘Serial1’ was not declared in this scope

Serial1.begin(9600);

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp: In member function ‘void RobotControl::analogWrite(uint8_t, uint8_t)’:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:65:11: error: ‘TKD4’ was not declared in this scope

if(port==TKD4)

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp: In member function ‘uint8_t RobotControl::_getTypeCode(uint8_t)’:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:82:8: error: ‘TKD0’ was not declared in this scope

case TKD0:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:83:8: error: ‘TKD1’ was not declared in this scope

case TKD1:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:84:8: error: ‘TKD2’ was not declared in this scope

case TKD2:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:85:8: error: ‘TKD3’ was not declared in this scope

case TKD3:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:86:8: error: ‘TKD4’ was not declared in this scope

case TKD4:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:87:8: error: ‘TKD5’ was not declared in this scope

case TKD5:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp: In member function ‘uint8_t RobotControl::_topDPortToAPort(uint8_t)’:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:122:8: error: ‘TKD0’ was not declared in this scope

case TKD0:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:124:8: error: ‘TKD1’ was not declared in this scope

case TKD1:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:126:8: error: ‘TKD2’ was not declared in this scope

case TKD2:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:128:8: error: ‘TKD3’ was not declared in this scope

case TKD3:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:130:8: error: ‘TKD4’ was not declared in this scope

case TKD4:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:132:8: error: ‘TKD5’ was not declared in this scope

case TKD5:

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:133:12: error: ‘A11’ was not declared in this scope

return A11;

^

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp: In member function ‘int RobotControl::knobRead()’:

C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\Sensors.cpp:254:22: error: ‘POT’ was not declared in this scope

return ::analogRead(POT);

^

exit status 1
Error compiling for board Arduino/Genuino Uno.

Please use </> code-tags to post code or error msg’s, seems like there is either a headerfile missing or maybe just not in the right sequence included. Is this an example that comes with a library ? Serial1' was not declared in this scopeas for this one, it makes me think that the library is not compatible with an UNO. Serial1 does not exist on an UNO.

That’s a LOT of undefined errors.
It looks like you are missing a header file where all these constants are defined.

Take this one for example:
pinMode(BUZZ,OUTPUT);

It is telling you that “BUZZ” is not defined. “BUZZ” is a constant, and it has to be defined somewhere for this code to work. Usually in a header file, or somewhere at the top of your program you should have something like this:

#define BUZZ 3

Meaning pin 3 will be used for the buzzer.

Given that you have a ton of these and some of them are not as straightforward as BUZZ I don’t think anyone can give any specific help. You just have to find out where these constants are supposed to be defined.

The ArduinoRobot library is written for use with the ATmega32U4 microcontroller based Arduino Robot. It can't be used with your ATmega328P microcontroller based Uno.