lfdebrux / rogue-code

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

Does not compile on Arduino 0022 #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch Arduino 0022
2. Select a SoftPWM example from the examples menu
3. compile or upload the example

The compiler complains about portOutputRegister not being defined.
which is defined in pins_arduino.h in this version of arduino.
I included the header file in SoftPWM.cpp and the example worked.

#if defined(WIRING)
 #include <Wiring.h>
#elif ARDUINO >= 100
 #include <Arduino.h>
#else
 #include <WProgram.h>
 #include <pins_arduino.h>
#endif

P.S. Thanks for a nice softpwm library

Original issue reported on code.google.com by euther...@gmail.com on 23 Feb 2012 at 8:28