spynnaker.pyNN.external_devices_models.push_bot.parameters package

Module contents

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotLED(value)

Bases: AbstractPushBotOutputDevice

The properties of the LED device that may be set.

Parameters:
  • value – Enum ID

  • protocol_property – The protocol property of the output device

  • min_value – smallest value allowed

  • max_value – largest value allowed

  • time_between_send – Time between sends

  • send_type – The type of data to be sent.

LED_BACK_ACTIVE_TIME = 2
LED_FREQUENCY = 3
LED_FRONT_ACTIVE_TIME = 1
LED_TOTAL_PERIOD = 0
class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotLaser(value)

Bases: AbstractPushBotOutputDevice

The properties of the laser device that may be set.

Parameters:
  • value – Enum ID

  • protocol_property – The protocol property of the output device

  • min_value – smallest value allowed

  • max_value – largest value allowed

  • time_between_send – Time between sends

  • send_type – The type of data to be sent.

LASER_ACTIVE_TIME = 1
LASER_FREQUENCY = 2
LASER_TOTAL_PERIOD = 0
class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotMotor(value)

Bases: AbstractPushBotOutputDevice

The properties of the motor devices that may be set. The pushbot has two motors, 0 (left) and 1 (right).

Parameters:
  • value – Enum ID

  • protocol_property – The protocol property of the output device

  • min_value – smallest value allowed

  • max_value – largest value allowed

  • time_between_send – Time between sends

  • send_type – The type of data to be sent.

MOTOR_0_LEAKY = 1
MOTOR_0_PERMANENT = 0
MOTOR_1_LEAKY = 3
MOTOR_1_PERMANENT = 2
class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotRetinaResolution(value)

Bases: Enum

Resolutions supported by the pushbot retina device.

DOWNSAMPLE_16_X_16 = RetinaKey.DOWNSAMPLE_16_X_16
DOWNSAMPLE_32_X_32 = RetinaKey.DOWNSAMPLE_32_X_32
DOWNSAMPLE_64_X_64 = RetinaKey.DOWNSAMPLE_64_X_64
NATIVE_128_X_128 = RetinaKey.NATIVE_128_X_128
class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotRetinaViewer(retina_resolution: PushBotRetinaResolution, label: str, sim: None = None)

Bases: object

Viewer of retina from the PushBot.

Parameters:
  • retina_resolution – Size of the retina to use

  • label – Label for connection over which live spikes will be received.

  • sim – Deprecated! Do not use.

property port: int

The port the connection is listening on.

run(run_time: float) None[source]

Run the viewer and simulation for a fixed time.

run_until_closed() None[source]

Run the viewer and simulation until the viewer is closed.

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotSpeaker(value)

Bases: AbstractPushBotOutputDevice

The properties of the speaker device that may be set.

Parameters:
  • value – Enum ID

  • protocol_property – The protocol property of the output device

  • min_value – smallest value allowed

  • max_value – largest value allowed

  • time_between_send – Time between sends

  • send_type – The type of data to be sent.

SPEAKER_ACTIVE_TIME = 1
SPEAKER_MELODY = 3
SPEAKER_TONE = 2
SPEAKER_TOTAL_PERIOD = 0