finished api for arduino ide