Page 7 of 21
Re: Arduino based Laser Control
Posted: Sun Oct 05, 2014 12:52 pm
by RobS
hi guys
i just tried to run the code and get the following message
LaserControl.ino: In function 'void setup()':
LaserControl:70: error: 'InitTimers' was not declared in this scope
LaserControl:71: error: 'SetPinFrequency' was not declared in this scope
LaserControl:77: error: 'pwmWrite' was not declared in this scope
LaserControl.ino: In function 'void DiagsOut()':
LaserControl:460: error: 'Console' was not declared in this scope
can someone help please
Bob
Re: Arduino based Laser Control
Posted: Mon Oct 06, 2014 1:50 pm
by ArtF
Bob:
Sounds like a syntax error.. did you modify the code any and perhaps miss a brace or something?
Art
Re: Arduino based Laser Control
Posted: Mon Oct 06, 2014 1:51 pm
by ArtF
Bob:
Also, is this a leonardo or another cpu?
Art
Re: Arduino based Laser Control
Posted: Mon Oct 06, 2014 6:19 pm
by RobS
Hi art no I did not modify it. It's a leodardo
Re: Arduino based Laser Control
Posted: Mon Oct 06, 2014 6:40 pm
by ArtF
Rob:
Looks like your system isnt seeing the PWM library. Did you copy the libraries to the proper folders?
In the first page of this thread youll find PWMLib.. you need to install that in your Arduino libraries..
Lets see what errors you get after that..
Art
Re: Arduino based Laser Control
Posted: Mon Oct 06, 2014 6:45 pm
by RobS
Ok Art I will look at that tomorrow I'm of to a party now thanks
Bob
Re: Arduino based Laser Control
Posted: Tue Oct 07, 2014 8:31 am
by RobS
Hi art
I have now got the errors down to the following
I cannot find a console libary anywhere.
as you can probably tell I am a complete beginner with Arduino
Thanks
Bob
Re: Arduino based Laser Control
Posted: Tue Oct 07, 2014 6:38 pm
by ArtF
Bob:
console is built in .. Do you have its headers at top of code..
#include <Bridge.h>
#include <Console.h>
Art
Re: Arduino based Laser Control
Posted: Tue Oct 07, 2014 6:39 pm
by DanL
you are using the wrong ide you need to up grade to new version that has the bits in it that you are missing 1.5.7
Re: Arduino based Laser Control
Posted: Tue Oct 07, 2014 6:40 pm
by ArtF
Bob:
Im a beginner too, this was the first arduino code Ive written.. might be only the YUN has a bridge.. Id remove the bridge.h line but I think you do need the console.h line..
Art