Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMX shield - DmxSimple compiling issue with Arduino 1.0 #17

Open
GoogleCodeExporter opened this issue Dec 2, 2015 · 7 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. When you use the DmxSimple library with Arduino 1.0, you get compiling 
errors => cannot find "wiring.h"

I'm using a Tinker.it DMX shield v.2 with a Arduino UNO R3.

It seams that with Arduino 1.0, the header file is renamed to Arduino.h.

You can solve it by edition the file "DmxSimple.cpp"
=> change line 12: #include "wiring.h"
to: #include "Arduino.h"

This solves the compiling erros.

Thanks to share your experiances!

Regards,
Kris

Original issue reported on code.google.com by [email protected] on 7 Dec 2011 at 11:25

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Thanks

Original comment by [email protected] on 28 Dec 2011 at 12:33

@GoogleCodeExporter
Copy link
Author

Thanks a lot

Original comment by [email protected] on 12 Apr 2012 at 6:05

@GoogleCodeExporter
Copy link
Author

Thanks a lot

Original comment by [email protected] on 30 Jul 2012 at 7:50

@GoogleCodeExporter
Copy link
Author

Patch for DmxSimple.cpp to fix this for all versions (untested with version < 
1.0 - can someone verify?):

11c11,16
< #include "wiring.h"
---
> #if ARDUINO >= 100
>   #include "Arduino.h"
> #else
>   #include "wiring.h"
> #endif
> 

Original comment by [email protected] on 8 Aug 2012 at 9:15

@GoogleCodeExporter
Copy link
Author

Verified this for < 1.0 (0023). Attached is the new DmxSimple.cpp file.

Original comment by [email protected] on 23 Oct 2012 at 11:14

Attachments:

@GoogleCodeExporter
Copy link
Author

I keep getting a compile error

C:\Program Files (x86)\Arduino\libraries\dmxSimple\DmxSimple.cpp:194: error: 
'min' was not declared in this scope

My schetch is the default empty sketch with JUST the 
#include <DmxSimple.h>

nothing in setup()
nothing in Loop()

empty schetch like I said with just the INCLUDE.

I am using an ARUDINO YUN ... is that compatible ???


Original comment by [email protected] on 5 Jan 2015 at 10:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant