spynnaker.pyNN.external_devices_models.push_bot.parameters package

Module contents

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotLaser[source]

Bases: spynnaker.pyNN.external_devices_models.push_bot.abstract_push_bot_output_device.AbstractPushBotOutputDevice

The properties of the laser device that may be set.

LASER_ACTIVE_TIME = 1

The active period for the laser (no larger than the total period)

LASER_FREQUENCY = 2

The frequency of the laser

LASER_TOTAL_PERIOD = 0

The total period for the laser

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotLED[source]

Bases: spynnaker.pyNN.external_devices_models.push_bot.abstract_push_bot_output_device.AbstractPushBotOutputDevice

The properties of the LED device that may be set.

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.PushBotMotor[source]

Bases: spynnaker.pyNN.external_devices_models.push_bot.abstract_push_bot_output_device.AbstractPushBotOutputDevice

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

MOTOR_0_LEAKY = 1

For motor 0, set a variable speed depending on time since event receive

MOTOR_0_PERMANENT = 0

For motor 0, set a particular speed

MOTOR_1_LEAKY = 3

For motor 1, set a variable speed depending on time since event receive

MOTOR_1_PERMANENT = 2

For motor 0, set a particular speed

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotSpeaker[source]

Bases: spynnaker.pyNN.external_devices_models.push_bot.abstract_push_bot_output_device.AbstractPushBotOutputDevice

The properties of the speaker device that may be set.

SPEAKER_ACTIVE_TIME = 1
SPEAKER_MELODY = 3
SPEAKER_TONE = 2
SPEAKER_TOTAL_PERIOD = 0
class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotRetinaResolution[source]

Bases: enum.Enum

Resolutions supported by the pushbot retina device

DOWNSAMPLE_16_X_16 = <RetinaKey.DOWNSAMPLE_16_X_16: 268435456>

Down sampled 64 (\(8 \times 8\)) pixels to 1

DOWNSAMPLE_32_X_32 = <RetinaKey.DOWNSAMPLE_32_X_32: 201326592>

Down sampled 16 (\(4 \times 4\)) pixels to 1

DOWNSAMPLE_64_X_64 = <RetinaKey.DOWNSAMPLE_64_X_64: 134217728>

Down sampled 4 (\(2 \times 2\)) pixels to 1

NATIVE_128_X_128 = <RetinaKey.NATIVE_128_X_128: 67108864>

The native resolution

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotRetinaViewer(resolution, port=0, display_max=33.0, frame_time_ms=10, decay_time_constant_ms=100)[source]

Bases: threading.Thread

A viewer for the pushbot’s retina. This is a thread that can be launched in parallel with the control code.

Based on matplotlib

Parameters:
  • resolution (PushBotRetinaResolution) –
  • port (int) –
  • display_max (float) – Value of brightest pixel to show
  • frame_time_ms (int) – How regularity to display frames (milliseconds)
  • decay_time_constant_ms (int) – Time constant of pixel decay (milliseconds)
local_host
local_port
run()[source]

How the viewer works when the thread is running.