The code is not working!
I didn't use it on the robot yet.(Alphabot uno)
I just compiled it, and I receive a deferent error message, such as:
Arduino: 1.8.7 (Windows 7), Board: "Arduino/Genuino Uno"
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);
^
exit status 1
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\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);
^
C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\helper.cpp: In member function 'void RobotControl::displayLogos()':
C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\helper.cpp:53:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_drawBMP("lg0.bmp",0,0);
^
C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\helper.cpp:55:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
_drawBMP("lg1.bmp",0,0);
^
C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\lcd.cpp: In member function 'void RobotControl::_drawBMP(char*, uint8_t, uint8_t)':
C:\Program Files (x86)\Arduino\libraries\Robot_Control\src\lcd.cpp:164:38: warning: NULL used in arithmetic [-Wpointer-arith]
if ((file.open(filename,O_READ)) == NULL) {
^
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.