Skip to content
On this page

Led

Overview

This command sets the led color of the selected motor(s).

shell
poppy led [value] [-h] [-m motors] [-H hostname] [-P port]

Options

 desccriptionvaluedefaultmandatory
[value]Set the 'led' registeroff | red | green | blue | yellow | cyan | pink | whiteoffno
-m/--motorSelect the targeted motors.name of motors | 'all''all'no
-H/--hostSet the Poppy hostname/IPstringpoppy.localno
-p/--portSet the REST API port on Poppyinteger8080no
-h/--helpDisplay help about this commandbooleanfalseno

Examples

  • Turn all leds off:
shell
poppy led
  • Set the led color of motors 'm3', 'm4' and 'm5' to 'green':
shell
poppy led green -m m3 m4 m5

Released under the MIT License.