Go Down

Topic: FIXED: Arduino 1.0 Issues with wiring.h RotaryEncoderAcelleration.h (Read 25857 times) previous topic - next topic


Jan 02, 2012, 11:22 pm Last Edit: Jan 03, 2012, 07:24 pm by cowasaki Reason: 1
I have a project that is nearly finished and is making use of several libraries one of which is RotaryEncoderAcelleration.h (http://arduino.cc/playground/Main/RotaryEncoderAcceleration).  This library calls routines wiring.h, tickspersecond.h.....

Anyway the program will not compile under Arduino 1.0

I get the following error messages:

In file included from M_Computer.cpp:2:
/Users/darren/Documents/Arduino/libraries/RotaryEncoderAcceleration/Button.h:6:20: error: wiring.h: No such file or directory
In file included from M_Computer.cpp:7:
/Users/darren/Documents/Arduino/libraries/LiquidCrystal/LiquidCrystal.h:82: error: conflicting return type specified for 'virtual void LiquidCrystal::write(uint8_t)'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'

I'm not really sure where to start but the first error is due to RotaryEncoderAccelerator calling button.h which calls wiring.h

There appears to be an issue with the Liquid Crystal library and Print.h too

Some pointers on what to do would be very helpful if anybody can possibly help

Do I need to replace the liquid crystal library with a newer version?

Many thanks


Jan 02, 2012, 11:34 pm Last Edit: Jan 03, 2012, 12:10 am by cowasaki Reason: 1
I've deleted the LiquidCrystal folder from documents::Arduino::libraries and replaced it for the one inside the Arduino 1.0 folder and now the error I get is:

In file included from M_Computer.cpp:2:
/Users/darren/Documents/Arduino/libraries/RotaryEncoderAcceleration/Button.h:6:20: error: wiring.h: No such file or directory

So just one error now, it would appear that the library ROTARYENCODERACCELERATION is not arduino v1.0 compatible yet :(


OK, this is now sorted :)

To fix RotaryEncoderAcelleration library so it works with Arduino 1.0 all you need to do is download the library and open each ".h" file then:


  #include <wiring.h>


  #include <Arduino.h>

That's it, my package now compiles :)


Hola cowasaki.

Te agradezco tu aporte, me ha servido para solucionar los fallos que se producen demasiado habitualmente en los IDE de Arduino, pues, no anden muy finos, cada nueva versión aporta una innumerable falta de atención ya que no se pueden cargar bocetos que siempre han funcionado y en los últimos años, sea por Windows o por librerías o cualquier otra causa, presentan incompatibilidades.
Otro aporte, para el error:

Code: [Select]
WProgram.h: No such file or directory
 #include "WProgram.h"

Al parecer hay que modificar las librerías que llevan "WProgram.h" con el siguiente código.

Code: [Select]
#if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
  #include "WProgram.h"
#include <Wire.h>
#include "wm_crypto.h"

Ya podrían dar aviso sobre nuevas posibilidades de fallos. Pero vamos a seguir y que no vayan las cosas a peor.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131