euphy / polargraph_server_a1

62 stars 43 forks source link

Can't upload to arduino #6

Closed qlootens closed 6 years ago

qlootens commented 6 years ago

Dear,

First of all thanks for the code. I am trying to fix it with XY plotter drawing machine. I am doing exact with the same hardware what is given here: xy plotter. However I can't upload the files to my arduino, do you know what these messages mean? What do i have to or change?

`

In file included from polargraph_server_a1.ino:107: /EEPROMAnything.h: In function 'int EEPROM_writeAnything(int, const T&)': EEPROMAnything.h:3: error: expected initializer before '*' token EEPROMAnything.h:6: error: 'p' was not declared in this scope /EEPROMAnything.h: In function 'int EEPROM_readAnything(int, T&)': EEPROMAnything.h:12: error: 'byte' was not declared in this scope EEPROMAnything.h:12: error: 'p' was not declared in this scope EEPROMAnything.h:12: error: expected primary-expression before ')' token EEPROMAnything.h:12: error: expected primary-expression before 'void' polargraph_server_a1.ino: At global scope: polargraph_server_a1:185: error: variable or field 'pixel_drawSquareWaveAlongAxis' declared void polargraph_server_a1:185: error: 'AccelStepper' was not declared in this scope polargraph_server_a1:185: error: 'longAxis' was not declared in this scope polargraph_server_a1:185: error: 'AccelStepper' was not declared in this scope polargraph_server_a1:185: error: 'wideAxis' was not declared in this scope polargraph_server_a1:185: error: expected primary-expression before 'int' polargraph_server_a1:185: error: expected primary-expression before 'int' polargraph_server_a1:185: error: expected primary-expression before 'int' polargraph_server_a1:185: error: expected primary-expression before 'int' polargraph_server_a1:218: error: variable or field 'moveAxis' declared void polargraph_server_a1:218: error: 'AccelStepper' was not declared in this scope polargraph_server_a1:218: error: 'm' was not declared in this scope polargraph_server_a1:218: error: expected primary-expression before 'int' polargraph_server_a1:174: error: 'AccelStepper' does not name a type polargraph_server_a1:175: error: 'AccelStepper' does not name a type polargraph_server_a1.ino: In function 'void setup()': polargraph_server_a1:280: error: 'motorA' was not declared in this scope polargraph_server_a1:282: error: 'motorB' was not declared in this scope configuration.ino: At global scope: configuration:26: error: 'AccelStepper' does not name a type configuration:27: error: 'AccelStepper' does not name a type exec.ino: In function 'void exec_setMotorSpeed(float)': exec:193: error: 'motorA' was not declared in this scope exec:194: error: 'motorB' was not declared in this scope exec.ino: In function 'void exec_setMotorAcceleration(float)': exec:210: error: 'motorA' was not declared in this scope exec:211: error: 'motorB' was not declared in this scope exec.ino: In function 'void exec_setPosition()': exec:228: error: 'motorA' was not declared in this scope exec:229: error: 'motorB' was not declared in this scope exec.ino: In function 'void exec_changeLengthDirect()': exec:259: error: 'motorA' was not declared in this scope exec:260: error: 'motorB' was not declared in this scope exec.ino: In function 'void exec_drawBetweenPoints(float, float, float, float, int)': exec:356: error: 'motorA' was not declared in this scope exec:357: error: 'motorB' was not declared in this scope impl_uno.ino: In function 'void impl_engageMotors()': impl_uno:252: error: 'motorA' was not declared in this scope impl_uno:253: error: 'motorB' was not declared in this scope impl_uno.ino: In function 'void impl_releaseMotors()': impl_uno:263: error: 'motorA' was not declared in this scope impl_uno:264: error: 'motorB' was not declared in this scope pixel.ino: In function 'void pixel_drawSquarePixel()': pixel:59: error: 'motorA' was not declared in this scope pixel:59: error: 'motorB' was not declared in this scope pixel.ino: In function 'void pixel_drawSquarePixel(int, int, int, byte)': pixel:311: error: 'motorA' was not declared in this scope pixel:311: error: 'motorB' was not declared in this scope pixel:311: error: 'pixel_drawSquareWaveAlongAxis' was not declared in this scope pixel:314: error: 'motorB' was not declared in this scope pixel:314: error: 'motorA' was not declared in this scope pixel:314: error: 'pixel_drawSquareWaveAlongAxis' was not declared in this scope pixel:318: error: 'motorA' was not declared in this scope pixel:318: error: 'motorB' was not declared in this scope pixel:318: error: 'pixel_drawSquareWaveAlongAxis' was not declared in this scope pixel:322: error: 'motorB' was not declared in this scope pixel:322: error: 'motorA' was not declared in this scope pixel:322: error: 'pixel_drawSquareWaveAlongAxis' was not declared in this scope pixel.ino: At global scope: pixel:334: error: variable or field 'pixel_drawSquareWaveAlongAxis' declared void pixel:334: error: 'AccelStepper' was not declared in this scope pixel:334: error: 'longAxis' was not declared in this scope pixel:334: error: 'AccelStepper' was not declared in this scope pixel:334: error: 'wideAxis' was not declared in this scope pixel:334: error: expected primary-expression before 'int' pixel:334: error: expected primary-expression before 'int' pixel:334: error: expected primary-expression before 'int' pixel:334: error: expected primary-expression before 'int' `

sincere

qlootens commented 6 years ago

fixed. used the wrong arduino