spynnaker.pyNN.external_devices_models.push_bot.parameters package

Module contents

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotLED(value)[source]

Bases: 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.PushBotLaser(value)[source]

Bases: 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.PushBotMotor(value)[source]

Bases: 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.PushBotRetinaResolution(value)[source]

Bases: Enum

Resolutions supported by the pushbot retina device.

DOWNSAMPLE_16_X_16 = RetinaKey.DOWNSAMPLE_16_X_16

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

DOWNSAMPLE_32_X_32 = RetinaKey.DOWNSAMPLE_32_X_32

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

DOWNSAMPLE_64_X_64 = RetinaKey.DOWNSAMPLE_64_X_64

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

NATIVE_128_X_128 = RetinaKey.NATIVE_128_X_128

The native resolution

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotRetinaViewer(retina_resolution, label, sim)[source]

Bases: object

Viewer of retina from the PushBot.

property port

The port the connection is listening on.

Return type:

int

run(run_time)[source]

Run the viewer and simulation for a fixed time.

run_until_closed()[source]

Run the viewer and simulation until the viewer is closed.

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotSpeaker(value)[source]

Bases: 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