spynnaker.pyNN.external_devices_models.push_bot.parameters package

Module contents

class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotLED(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

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, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: AbstractPushBotOutputDevice

The properties of the laser device that may be set.

LASER_ACTIVE_TIME = 1
LASER_FREQUENCY = 2
LASER_TOTAL_PERIOD = 0
class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotMotor(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

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
MOTOR_0_PERMANENT = 0
MOTOR_1_LEAKY = 3
MOTOR_1_PERMANENT = 2
class spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotRetinaResolution(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

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, label, sim)

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, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

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