
Controlling the integrated RGB LEDs:
set_front_led(R: int, G: int, B: int)
set_back_led(R: int, G: int, B: int)
Sets the color value for the front/rear LED.
R, G, B - color channels with the range of values [0..255]
Usage example: ...\PythonForNanopix\examples\blink.py
Run or stop the motors:
arm_motors() - run the motors
disarm_motors() - stop the motors
Usage example: ...\PythonForNanopix\examples\arm_disarm.py
API description
8
●get_roll() -> float - returns the
current roll angle in degrees
[-180, 180]
●get_pitch() -> float - returns the
current pitch angle in degrees
[-180, 180]
●get_yaw() -> float - returns the current
yaw angle in degrees
[-180, 180]
Usage example:
...\PythonForNanopix\examples\roll_led.py