Anyway, the fix is to open AFMotor.h in notepad and re-save it, but make sure the text encoding is set to ANSI. There’s a dropdown next to the save button on the save-as dialog for this. Save it as the exact same name. You might need to do it for AFMotor.cpp too if it’s also in the wrong format.
Let me know how you get on.
sn
Make a page using the setup tab->page width, page height, page y pos and then centre page. Don’t think the size matters.
Then load your image, then move image to the middle of the page, _then_ do some resizing etc.
That works for me.
The real issue is that there’s lots of operations in it that expect there to be an image loaded and initialised, and if there isn’t, it gets a bit confused about it’s place in the world. Fairly straightforward fix to disable some of the controls that rely on that while an image isn’t loaded.
Give it a shot Matt, fingers crossed, and I’ll write a fix in the meantime.
]]>I’ve tried the new Arduino 1.0 code and I get the error :
In file included from sketch_jan22a.cpp:2:
C:\Program Files\arduino-1.0\libraries\AFMotor/AFMotor.h:1: error: stray ‘\357’ in program
C:\Program Files\arduino-1.0\libraries\AFMotor/AFMotor.h:1: error: stray ‘\273’ in program
C:\Program Files\arduino-1.0\libraries\AFMotor/AFMotor.h:1: error: stray ‘\277’ in program
I’ve copied the new libraries to the Arduino1.0 folder..but I have no idea of whats going wrong there.
hope you can help me
thanks!!
float scaling = imageWidth / getImage().width;
It is in the Machine page. I am using TortoiseSVN for the updates, it is easier. By this can you tell if I am missing something? I appreciate your help. Thanks,
Matt