Browse Source

Adding layer rotation (next/prev) support

- Includes symbolic names
master
Jacob Alexander 8 years ago
parent
commit
57d01ed872
3 changed files with 15 additions and 3 deletions
  1. 5
    1
      kll_lib/hid_dict.py
  2. 5
    1
      layouts/lcdFuncMap.kll
  3. 5
    1
      layouts/stdFuncMap.kll

+ 5
- 1
kll_lib/hid_dict.py View File

( ('USB', 0xFD), 'KEY_FUN14' ), ( ('USB', 0xFD), 'KEY_FUN14' ),
( ('USB', 0xFE), 'KEY_FUN15' ), ( ('USB', 0xFE), 'KEY_FUN15' ),
( ('USB', 0xFF), 'KEY_FUN16' ), ( ('USB', 0xFF), 'KEY_FUN16' ),
# ('USB', 0x100) to ('USB', 0x11F) for function key placeholders, not valid usb codes (must use a translation .kll file before firmware compilation)
# ('USB', 0x100) to ('USB', 0x121) for function key placeholders, not valid usb codes (must use a translation .kll file before firmware compilation)
( ('USB', 0x100), 'KEY_LCK1' ), ( ('USB', 0x100), 'KEY_LCK1' ),
( ('USB', 0x101), 'KEY_LCK2' ), ( ('USB', 0x101), 'KEY_LCK2' ),
( ('USB', 0x102), 'KEY_LCK3' ), ( ('USB', 0x102), 'KEY_LCK3' ),
( ('USB', 0x11D), 'KEY_LAT14' ), ( ('USB', 0x11D), 'KEY_LAT14' ),
( ('USB', 0x11E), 'KEY_LAT15' ), ( ('USB', 0x11E), 'KEY_LAT15' ),
( ('USB', 0x11F), 'KEY_LAT16' ), ( ('USB', 0x11F), 'KEY_LAT16' ),
( ('USB', 0x120), 'KEY_NEXT_LAYER' ),
( ('USB', 0x121), 'KEY_PREV_LAYER' ),


# USB HID Consumer Control Codes # USB HID Consumer Control Codes
# List of Consumer Codes - USB HID 1.12v2 # List of Consumer Codes - USB HID 1.12v2
( 'LAT14', ('USB', 0x11D) ), ( 'LATCH14', ('USB', 0x11D) ), ( 'LAT14', ('USB', 0x11D) ), ( 'LATCH14', ('USB', 0x11D) ),
( 'LAT15', ('USB', 0x11E) ), ( 'LATCH15', ('USB', 0x11E) ), ( 'LAT15', ('USB', 0x11E) ), ( 'LATCH15', ('USB', 0x11E) ),
( 'LAT16', ('USB', 0x11F) ), ( 'LATCH16', ('USB', 0x11F) ), ( 'LAT16', ('USB', 0x11F) ), ( 'LATCH16', ('USB', 0x11F) ),
( 'NLAYER', ('USB', 0x120) ), ( 'NEXT LAYER', ('USB', 0x120) ),
( 'PLAYER', ('USB', 0x121) ), ( 'PREV LAYER', ('USB', 0x121) ),
]) ])





+ 5
- 1
layouts/lcdFuncMap.kll View File

KLL = 0.3c; KLL = 0.3c;


# Modified Date # Modified Date
Date = 2015-09-20;
Date = 2015-09-24;


# Maps each Function key incrementally to each layer # Maps each Function key incrementally to each layer
# Unused layers and functions are ignored # Unused layers and functions are ignored
U"Latch15" : layerLatch( 15 ) + LCDLayerDisplay(); U"Latch15" : layerLatch( 15 ) + LCDLayerDisplay();
U"Latch16" : layerLatch( 16 ) + LCDLayerDisplay(); U"Latch16" : layerLatch( 16 ) + LCDLayerDisplay();


# Layer rotation
U"Next Layer" : layerRotate( 0 ) + LCDLayerDisplay(); # 0 is Next
U"Prev Layer" : layerRotate( 1 ) + LCDLayerDisplay(); # 1 is Previous



# Colours assigned to each of the LCD numbers # Colours assigned to each of the LCD numbers
# The "top of stack" layer is the colour used # The "top of stack" layer is the colour used

+ 5
- 1
layouts/stdFuncMap.kll View File

KLL = 0.3; KLL = 0.3;


# Modified Date # Modified Date
Date = 2015-09-20;
Date = 2015-09-24;


# Maps each Function key incrementally to each layer # Maps each Function key incrementally to each layer
# Unused layers and functions are ignored # Unused layers and functions are ignored
U"Latch15" : layerLatch( 15 ); U"Latch15" : layerLatch( 15 );
U"Latch16" : layerLatch( 16 ); U"Latch16" : layerLatch( 16 );


# Layer rotation
U"Next Layer" : layerRotate( 0 ); # 0 is Next
U"Prev Layer" : layerRotate( 1 ); # 1 is Previous