Wheel IDE

Online demo »

Device

This file contains a procedure to select the type of device which is controlled through the simulator. You can control EV3 or Powered Up devices.

Constants

The device module.
Source: lib/modules/device.whl, line: 11
MODULE_DEVICE12

The avaialable layers, layers 5..8 are only available for Powered Up.
Source: lib/modules/device.whl, line: 14
LAYER_10
LAYER_21
LAYER_32
LAYER_43
LAYER_54
LAYER_65
LAYER_76
LAYER_87
LAYER_98
LAYER_109

The avaialable types of devices.
Source: lib/modules/device.whl, line: 26
DEVICE_NXT0
DEVICE_EV31
DEVICE_POWERED_UP2
DEVICE_SPIKE3

Module calls for device functions.
Source: lib/modules/device.whl, line: 32
DEVICE_SELECT0

Procedures

selectDevice
Source: lib/modules/device.whl, line: 35
E P

Select the device.

proc selectDevice(number device)
Parameters:
NameTypeDescription
devicenumberThe device, valid values are DEVICE_EV3, DEVICE_POWERED_UP or DEVICE_SPIKE.