Meggy Jr Programming "wiring.h"
  • After having it lying in the drawer for quite some time, today i decided to try out programming for the meggy jr, and more or less instantly failed because of an error the Arduiono IDE is giving me when compiling any of the Example programs using the Meggy Jr RGB Arduino Library.

    Said error is:

    .../sketchbook/libraries/MeggyJr/MeggyJr.cpp:32:19: fatal error: wiring.h: No such file or directory
    compilation terminated.

    I am working on Ubuntu using version 1.0.5 of Arduino. Googling yielded close to no results except someone suggesting replacing "wiring.h" with "wiring_private.h" in the MeggyJr.cpp file, which, according to my expectations, didn´t work. Also i found code for the wiring.h here

    http://code.google.com/p/arduino/source/browse/trunk/core/wiring.h?r=22

    But i have absolutely no idea if its the right file or where to put it if it was the right one.

    I hope someone will be able to help me with my (hopefully) little newbie problem.

    Thank you in advance.
  • The error is due to some internal changes in the Arduino program since that version of the Meggy Jr library was released.  I've just uploaded a newer version of the library that should fix the issue.  Please give it a try and let me know how it goes: https://github.com/evil-mad/MeggyJrRGB/releases/tag/v1.5
  • Thank you very much! Compiles like a charm now.