pull request 

This branch is ported for arduino 1.0