Original file for arduino IDE 0017

The original Arduino code commit.
Merge pull request #4 from RuiAlves/arduino-code

Original file for arduino IDE 0017