Prevent PC Sleep icon Prevent PC Sleep — Prevents a PC from entering sleep mode via a tiny, resizable control-keeps the system awake while minimizing UI real estate Try it →
 

EZB

Information about the EZB controllers: whether one is connected, its battery voltage and its processor temperature, and the levels at which it warns about them. EZB 0 is the first controller in the project.

Where to find it: type EZB. in a JavaScript script, or open the ARCx API view of the script editor and expand EZB


Commands

Command What it does
EZB.getCPUTemp Returns the CPU temperature of the first EZB, in degrees Celsius.
EZB.getVoltage Returns the battery voltage of the first EZB, in volts.
EZB.isConnected Checks whether an EZB is connected.
EZB.setCPUTemp Sets the CPU temperature reported for the first EZB, for firmware that cannot measure it.
EZB.setVoltage Sets the battery voltage reported for the first EZB, for firmware that cannot measure it.

Details

EZB.getCPUTemp

Returns the CPU temperature of the first EZB, in degrees Celsius. Read from the EZB when its firmware supports it, otherwise the last value seen or set (0 if none); an EZB that is not connected normally reads 0.

EZB.getCPUTemp()
EZB.getCPUTemp(ezbIndex)
Value Type What it is
ezbIndex number Optional. Which EZB to use, 0 being the first one.

Gives back: number. The CPU temperature in degrees Celsius.

EZB.getVoltage

Returns the battery voltage of the first EZB, in volts. Read from the EZB when its firmware supports it, otherwise the last value seen or set (0 if none); an EZB that is not connected normally reads 0.

EZB.getVoltage()
EZB.getVoltage(ezbIndex)
Value Type What it is
ezbIndex number Optional. Which EZB to use, 0 being the first one.

Gives back: number. The battery voltage in volts.

EZB.isConnected

Checks whether an EZB is connected. Raises an error if there is no EZB at that index.

EZB.isConnected(ezbIndex)
Value Type What it is
ezbIndex number Which EZB to use, 0 being the first one.

Gives back: boolean. Whether the EZB is connected.

EZB.setCPUTemp

Sets the CPU temperature reported for the first EZB, for firmware that cannot measure it. Nothing is sent to the EZB, and firmware that can measure temperature replaces it on the next reading.

EZB.setCPUTemp(temp)
EZB.setCPUTemp(temp, ezbIndex)
Value Type What it is
temp number The temperature in degrees Celsius.
ezbIndex number Optional. Which EZB to use, 0 being the first one.

EZB.setVoltage

Sets the battery voltage reported for the first EZB, for firmware that cannot measure it. Nothing is sent to the EZB, and firmware that can measure voltage replaces it on the next reading.

EZB.setVoltage(voltage)
EZB.setVoltage(voltage, ezbIndex)
Value Type What it is
voltage number The voltage in volts.
ezbIndex number Optional. Which EZB to use, 0 being the first one.