Previous topic

spinnman.messages.scp.impl.scp_iptag_set_request module

Next topic

spinnman.messages.scp.impl.scp_read_link_request module

This Page

spinnman.messages.scp.impl.scp_led_request module

class spinnman.messages.scp.impl.scp_led_request.SCPLEDRequest(x, y, cpu, led_states)[source]

Bases: spinnman.messages.scp.abstract_messages.abstract_scp_request.AbstractSCPRequest

A request to change the state of an LED

Parameters:
  • x (int) – The x-coordinate of the chip, between 0 and 255
  • y (int) – The y-coordinate of the chip, between 0 and 255
  • cpu (int) – The CPU-number to use to set the LED.
  • led_states (dict) – A dictionary mapping LED index to state with 0 being off, 1 on and 2 inverted.
Raises spinnman.exceptions.SpinnmanInvalidParameterException:
 

  • If x is out of range
  • If y is out of range
  • If cpu is out of range
  • If LEDs are not in the range 0 to 7
  • If LED states are not 0, 1 or 2.

Attributes

argument_1 The first argument, or None if no first argument
argument_2 The second argument, or None if no second argument
argument_3 The third argument, or None if no third argument
data The data, or None if no data
scp_request_header The SCP request header of the message
sdp_header The SDP header of the message

Methods

get_scp_response() See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response()

Detailed Methods

get_scp_response()[source]

See spinnman.messages.scp.abstract_scp_request.AbstractSCPRequest.get_scp_response()