jan415 / tinkerit

Automatically exported from code.google.com/p/tinkerit
0 stars 0 forks source link

DMX shield - DmxSimple compiling issue with Arduino 1.0 #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 anik.k...@gmail.com on 7 Dec 2011 at 11:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks

Original comment by akaruv...@gmail.com on 28 Dec 2011 at 12:33

GoogleCodeExporter commented 8 years ago
Thanks a lot

Original comment by jakobhan...@gmail.com on 12 Apr 2012 at 6:05

GoogleCodeExporter commented 8 years ago
Thanks a lot

Original comment by iacopo...@gmail.com on 30 Jul 2012 at 7:50

GoogleCodeExporter commented 8 years ago
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 djfl...@gmail.com on 8 Aug 2012 at 9:15

GoogleCodeExporter commented 8 years ago
Verified this for < 1.0 (0023). Attached is the new DmxSimple.cpp file.

Original comment by m...@hhermsen.nl on 23 Oct 2012 at 11:14

Attachments:

GoogleCodeExporter commented 8 years ago
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 chas...@gmail.com on 5 Jan 2015 at 10:29