Modified Arduino 1.5.1r2 codebase