Wheel IDE

Online demo »

System

This file contains EV3 system procedures.

Constants

The system module.
Source: lib/modules/system.whl, line: 10
MODULE_SYSTEM9

System module calls.
Source: lib/modules/system.whl, line: 13
SYSTEM_GET_BATTERY_VOLTAGE0
SYSTEM_GET_BATTERY_CURRENT1
SYSTEM_GET_BATTERY_LEVEL2
SYSTEM_GET_VOLUME3
SYSTEM_SET_VOLUME4
SYSTEM_GET_POWER_OFF_MINUTES5
SYSTEM_SET_POWER_OFF_MINUTES6
SYSTEM_GET_BRICKNAME7
SYSTEM_SET_BRICKNAME8
SYSTEM_GET_MEMORY_TOTAL9
SYSTEM_GET_MEMORY_FREE10

Procedures

getBatteryVoltage
Source: lib/modules/system.whl, line: 26
E

Get the battery voltage.

proc getBatteryVoltage()
Return: The battery voltage.


getBatteryCurrent
Source: lib/modules/system.whl, line: 33
E

Get the battery current.

proc getBatteryCurrent()
Return: The battery current.


getBatteryLevel
Source: lib/modules/system.whl, line: 40
E P

Get the battery level.

proc getBatteryLevel()
Return: The battery level.


getVolume
Source: lib/modules/system.whl, line: 47
E

Get the sound volume.

proc getVolume()
Return: The sound volume.


setVolume
Source: lib/modules/system.whl, line: 54
E

Get the sound volume.

proc setVolume(number volume)
Parameters:
NameTypeDescription
volumenumberThe sound volume.

getPowerOffMinutes
Source: lib/modules/system.whl, line: 62
E

Get the power off time.

proc getPowerOffMinutes()
Return: The time in minutes.


setPowerOffMinutes
Source: lib/modules/system.whl, line: 69
E

Set the power off time.

proc setPowerOffMinutes(number time)
Parameters:
NameTypeDescription
timenumberThe power off time.

getBrickName
Source: lib/modules/system.whl, line: 77
E

Get the brick name.

proc getBrickName(string brickName)
Parameters:
NameTypeDescription
brickNamestringThe brick name.

setBrickName
Source: lib/modules/system.whl, line: 85
E

Set the brick name.

proc setBrickName(string brickName)
Parameters:
NameTypeDescription
brickNamestringThe brick name.

getMemoryTotal
Source: lib/modules/system.whl, line: 93
E

Get the total available memory in KB.

proc getMemoryTotal()
Return: The total memory.


getMemoryFree
Source: lib/modules/system.whl, line: 100
E

Get the free available memory in KB.

proc getMemoryFree()
Return: The free memory.