Skip to content

Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0

  • instead of including wiring.h, WProgram.h, WConstants.h and pins_arduino.h, you only need Arduino.h

  • Wire.send() is now Wire.write(), Wire.receive() is now Wire.read()

    • If you get error messages like "call of overloaded ‘write(int)’ is ambiguous", you probably need to add "(byte)" before a constant argument, eg: Wire.write((byte)0x00);

  • It is possible to use conditional statements to write code that is compatible with older and newer versions, eg:
    #if ARDUINO >= 100
    #include "Arduino.h"
    #else
    #include "WProgram.h"
    #endif

  • More complete list and additional information:


  • Twitter
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Mixx Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Bloglines Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Technorati Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Fark this: Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at YahooMyWeb
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at Furl.net
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at reddit.com
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at blinklist.com
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at Spurl.net
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at NewsVine
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at Simpy.com
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 at blogmarks
  • Bookmark Converting a sketch or a library from Arduino IDE 0023 to Arduino 1.0 with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

The author does not allow comments to this entry

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options