Code for NetDuino2 added. Thanks @tamberg for helping :-)