之前这个程序上传过很多次了。但是昨晚突然不行了。
纯小白,不懂编译。
求大侠帮助,板子是arduino nano v3.0 .编译错误如下:
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Nano w/ ATmega328"
uCNC_controller.ino: In function 'void setup()':
uCNC_controller:84: error: 'Serial' was not declared in this scope
uCNC_controller:87: error: 'OUTPUT' was not declared in this scope
uCNC_controller:87: error: 'pinMode' was not declared in this scope
uCNC_controller:94: error: 'initMotors' was not declared in this scope
uCNC_controller.ino: In function 'void loop()':
uCNC_controller:106: error: 'Serial' was not declared in this scope
uCNC_controller:118: error: 'delayMicroseconds' was not declared in this scope
uCNC_controller:123: error: 'process_command' was not declared in this scope
uCNC_controller:130: error: 'powerdown' was not declared in this scope
uCNC_gcode.ino: At global scope:
uCNC_gcode:22: error: 'boolean' does not name a type
uCNC_gcode.ino: In function 'void setXYZ(f_PosXYZ*)':
uCNC_gcode:35: error: 'command_exists' was not declared in this scope
uCNC_gcode:35: error: 'getValue' was not declared in this scope
uCNC_gcode:35: error: 'abs_mode' was not declared in this scope
uCNC_gcode.ino: In function 'void process_command(uint8_t*)':
uCNC_gcode:51: error: 'Serial' was not declared in this scope
uCNC_gcode:55: error: 'purge_commands' was not declared in this scope
uCNC_gcode:56: error: 'parse_commands' was not declared in this scope
uCNC_gcode:58: error: 'command_exists' was not declared in this scope
uCNC_gcode:59: error: 'getValue' was not declared in this scope
uCNC_gcode:64: error: 'movePosXYZ' was not declared in this scope
uCNC_gcode:83: error: 'delay' was not declared in this scope
uCNC_gcode:101: error: 'linePos' was not declared in this scope
uCNC_gcode:102: error: 'drill' was not declared in this scope
uCNC_gcode:105: error: 'abs_mode' was not declared in this scope
uCNC_gcode:111: error: 'resetXY' was not declared in this scope
uCNC_gcode:121: error: 'Serial' was not declared in this scope
uCNC_gcode:122: error: 'DEC' was not declared in this scope
uCNC_gcode:127: error: 'command_exists' was not declared in this scope
uCNC_gcode:128: error: 'getValue' was not declared in this scope
uCNC_gcode:129: error: 'updateToolCodes' was not declared in this scope
uCNC_gcode:132: error: 'command_exists' was not declared in this scope
uCNC_gcode:133: error: 'getValue' was not declared in this scope
uCNC_gcode:158: error: 'powerdown' was not declared in this scope
uCNC_gcode:185: error: 'updateMotorCodes' was not declared in this scope
uCNC_gcode:203: error: 'Serial' was not declared in this scope
uCNC_motor.ino: In function 'void moveY(int)':
uCNC_motor:122: error: 'abs' was not declared in this scope
uCNC_motor.ino: In function 'void penDown()':
uCNC_motor:139: error: 'delay' was not declared in this scope
uCNC_motor:140: error: 'HIGH' was not declared in this scope
uCNC_motor:140: error: 'digitalWrite' was not declared in this scope
uCNC_motor.ino: In function 'void penUp()':
uCNC_motor:147: error: 'LOW' was not declared in this scope
uCNC_motor:147: error: 'digitalWrite' was not declared in this scope
uCNC_motor:149: error: 'delay' was not declared in this scope
uCNC_motor.ino: In function 'void moveZ(int)':
uCNC_motor:178: error: 'HIGH' was not declared in this scope
uCNC_motor:178: error: 'LOW' was not declared in this scope
uCNC_motor:178: error: 'digitalWrite' was not declared in this scope
uCNC_motor:180: error: 'delay' was not declared in this scope
uCNC_motor.ino: In function 'void powerdown()':
uCNC_motor:195: error: 'LOW' was not declared in this scope
uCNC_motor:195: error: 'digitalWrite' was not declared in this scope
uCNC_motor.ino: In function 'void updateMotorCodes()':
uCNC_motor:213: error: 'HIGH' was not declared in this scope
uCNC_motor:213: error: 'LOW' was not declared in this scope
uCNC_motor:213: error: 'digitalWrite' was not declared in this scope
uCNC_motor.ino: In function 'void drill()':
uCNC_motor:267: error: 'delay' was not declared in this scope
uCNC_motor.ino: In function 'void lineXYZ(int, int, int)':
uCNC_motor:291: error: 'abs' was not declared in this scope
uCNC_parse.ino: In function 'void addObj(uint8_t*)':
uCNC_parse:47: error: 'NULL' was not declared in this scope
uCNC_parse:47: error: 'strtod' was not declared in this scope