Skip to main content

reset_default_led()

Description#

This function sets the LED color of the eyes and arms back to red and sets the mode to SOLID, which is the original default color.

Syntax#

Python: reset_default_led()
Arduino: resetDefaultLED()

Parameters#

None

Returns#

None

Example Code#
Python#
#Python code
import CoDrone
drone = CoDrone.CoDrone()
drone.pair()
drone.reset_default_led()
drone.close()
Arduino#
//Arduino code
#include<CoDrone.h> //header
void setup(){
//open serial and connect
CoDrone.begin(115200);
CoDrone.pair(Nearest);
// Reset Drone’s LED to holding the Red color
CoDrone.resetDefaultLED();
}
void loop(){
}