ISKernel:g15 (Object Type)
Jump to navigation
Jump to search
Contents
Description
g15 | |
Defined By | Inner Space Kernel |
Inherits | none |
Reduces To | none |
Variable Object Type | none |
Uses Sub-Types | no |
C/C++ Type | unsigned int |
Members
- bool M1Light: TRUE if the M1 light is on
- bool M2Light: TRUE if the M2 light is on
- bool M3Light: TRUE if the M3 light is on
- bool MRLight: TRUE if the MR light is on
- uint MLights: Bit field with M-light states (M1=1,M2=2,M3=4,MR=8)
- uint BacklightLevel: Keyboard backlight level (0 off, 1 medium, 2 high)
- uint LCDBacklightLevel: LCD backlight level (0 off, 1 medium, 2 high)
Methods
- SetM1Light[value]: TRUE for on, FALSE for off
- SetM2Light[value]: TRUE for on, FALSE for off
- SetM3Light[value]: TRUE for on, FALSE for off
- SetMRLight[value]: TRUE for on, FALSE for off
- SetMLights[#]: Set all 4 M-lights with a bit field (M1=1,M2=2,M3=4,MR=8)
- SetBacklightLevel[#]: Set keyboard backlight level (0 off, 1 medium, 2 high)
- SetLCDBacklightLevel[#]: Set LCD backlight level (0 off, 1 medium, 2 high)
Examples
- Check the state of one M-light
echo ${Input.G15.M1Light}
- Check the state of all M-lights
echo ${Input.G15.MLights}
- Check the keyboard backlight level
echo ${Input.G15.BacklightLevel}
- Set the keyboard backlight level to high
Input.G15:SetBacklightLevel[2]
- Set all M-lights on (1+2+4+8 = 15)
Input.G15:SetMLights[15]
- Set MR light off
Input.G15:SetMRLight[FALSE]
- Set LCD backlight off
Input.G15:SetLCDBacklightLevel[0]