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
Arduino based Laser Control
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
Re: Arduino based Laser Control
Bob:
Sounds like a syntax error.. did you modify the code any and perhaps miss a brace or something?
Art
Sounds like a syntax error.. did you modify the code any and perhaps miss a brace or something?
Art
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
Re: Arduino based Laser Control
Bob:
Also, is this a leonardo or another cpu?
Art
Also, is this a leonardo or another cpu?
Art
-
RobS
- Site Admin
- Posts: 6
- Joined: Mon Sep 08, 2014 11:17 am
Re: Arduino based Laser Control
Hi art no I did not modify it. It's a leodardo
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
Re: Arduino based Laser Control
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
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
-
RobS
- Site Admin
- Posts: 6
- Joined: Mon Sep 08, 2014 11:17 am
Re: Arduino based Laser Control
Ok Art I will look at that tomorrow I'm of to a party now thanks
Bob
Bob
-
RobS
- Site Admin
- Posts: 6
- Joined: Mon Sep 08, 2014 11:17 am
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
Re: Arduino based Laser Control
Bob:
console is built in .. Do you have its headers at top of code..
#include <Bridge.h>
#include <Console.h>
Art
console is built in .. Do you have its headers at top of code..
#include <Bridge.h>
#include <Console.h>
Art
-
DanL
- Site Admin
- Posts: 357
- Joined: Thu Sep 11, 2014 12:35 am
Re: Arduino based Laser Control
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
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
Re: Arduino based Laser Control
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
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
