reset_default_led() / resetDefaultLED()

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

def main():
    drone = CoDrone.CoDrone()
    drone.pair()

    drone.reset_default_led()

if __name__ == '__main__':
    main()
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(){

}