def  set_led(self, colorcode):
        """ Set the LED Color of Herkulex

        Args:
            colorcode (int): The code for colors
                            (0x00-OFF
                             0x02-BLUE
                             0x03-CYAN
                             0x04-RED
                             0x05-ORANGE
                             0x06-VIOLET
                             0x07-WHITE
        """
        data = []
        data.append(0x0A)
        data.append(self.servoid)
        data.append(RAM_WRITE_REQ)
        data.append(LED_CONTROL_RAM)
        data.append(0x01)
        data.append(colorcode)
        send_data(data)
def set_led ( self , colorcode ) : data = [ ] data . append ( 0x0A ) data . append ( self . servoid ) data . append ( RAM_WRITE_REQ ) data . append ( LED_CONTROL_RAM ) data . append ( 0x01 ) data . append ( colorcode ) send_data ( data )
Set the LED Color of Herkulex

        Args:
            colorcode (int): The code for colors
                            (0x00-OFF
                             0x02-BLUE
                             0x03-CYAN
                             0x04-RED
                             0x05-ORANGE
                             0x06-VIOLET
                             0x07-WHITE