]> git.donarmstrong.com Git - kiibohd-kll.git/commitdiff
Adding examples and template.
authorJacob Alexander <haata@kiibohd.com>
Wed, 3 Sep 2014 06:45:07 +0000 (23:45 -0700)
committerJacob Alexander <haata@kiibohd.com>
Wed, 3 Sep 2014 06:45:07 +0000 (23:45 -0700)
examples/capabilitiesExample.kll [new file with mode: 0644]
examples/defaultMapExample.kll [new file with mode: 0644]
examples/example.kll [new file with mode: 0644]
examples/md1Map.kll [new file with mode: 0644]
examples/simple1.kll [new file with mode: 0644]
examples/simple2.kll [new file with mode: 0644]
examples/simpleExample.kll [new file with mode: 0644]
templateKeymap.h [deleted file]
templates/kiibohdKeymap.h [new file with mode: 0644]

diff --git a/examples/capabilitiesExample.kll b/examples/capabilitiesExample.kll
new file mode 100644 (file)
index 0000000..b390266
--- /dev/null
@@ -0,0 +1,9 @@
+Name = ExampleModule;
+Author = "HaaTa (Jacob Alexander) 2014";
+KLL = 0.3;
+
+
+myCapability2 => myFunc2();
+myCapability3 => myFunc2( myArg1 : 2 );
+myCapability  => myFunc( myArg1 : 1, myArg2 : 4 );
+
diff --git a/examples/defaultMapExample.kll b/examples/defaultMapExample.kll
new file mode 100644 (file)
index 0000000..8d2207e
--- /dev/null
@@ -0,0 +1,73 @@
+Name = Kishsaver;
+Version = 0.1;
+Author = "HaaTa (Jacob Alexander) 2014";
+KLL = 0.2d;
+
+# Modified Date
+Date = 2014-06-12;
+
+S0x40 : U"Backspace";
+
+S0x42 : U"}";
+S0x43 : U"Delete";
+S0x44 : U"Enter";
+
+S0x46 : U"RShift";
+S0x47 : U"RCtrl";
+S0x48 : U"=";
+S0x49 : U"-";
+S0x4A : U"{";
+S0x4B : U"\";
+S0x4C : U"'";
+S0x4D : U"/";
+S0x4E : U"RGui";
+S0x4F : U"RAlt";
+S0x50 : U"0";
+S0x51 : U"9";
+S0x52 : U"P";
+S0x53 : U"O";
+S0x54 : U";";
+S0x55 : U"L";
+S0x56 : U".";
+S0x57 : U",";
+S0x58 : U"8";
+S0x59 : U"7";
+S0x5A : U"I";
+S0x5B : U"U";
+S0x5C : U"J";
+S0x5D : U"K";
+S0x5E : U"M";
+S0x5F : U"N";
+S0x60 : U"6";
+S0x61 : U"5";
+S0x62 : U"Y";
+S0x63 : U"T";
+S0x64 : U"H";
+S0x65 : U"G";
+S0x66 : U"B";
+S0x67 : U"Space";
+S0x68 : U"4";
+S0x69 : U"3";
+S0x6A : U"R";
+S0x6B : U"E";
+S0x6C : U"F";
+S0x6D : U"D";
+S0x6E : U"C";
+S0x6F : U"V";
+S0x70 : U"2";
+S0x71 : U"Q";
+S0x72 : U"W";
+S0x73 : U"A";
+S0x74 : U"S";
+S0x75 : U"X";
+S0x76 : U"Z";
+S0x77 : U"LAlt";
+S0x78 : U"1";
+S0x79 : U"`";
+S0x7A : U"Tab";
+S0x7B : U"CapsLock";
+S0x7C : U"LShift";
+S0x7D : U"Inter1";
+S0x7E : U"LGui";
+S0x7F : U"LCtrl";
+
diff --git a/examples/example.kll b/examples/example.kll
new file mode 100644 (file)
index 0000000..22f6ed7
--- /dev/null
@@ -0,0 +1,34 @@
+Name = colemak;
+Version = 0.1;
+Author = "HaaTa (Jacob Alexander) 2014";
+KLL = 0.3;
+
+# Modified Date
+Date = 2014-08-24;
+
+test => myCFunc( dat : 1 );
+
+U"A" : U"B";
+# Top row
+#'e' : 'f';
+#'r' : 'p';
+#'t' : 'g';
+#'y' : 'j';
+#'u' : 'l';
+#'i' : 'u';
+#'o' : 'y';
+#'p' : ';';
+
+# Middle Row
+#'s' : 'r';
+#'d' : 's';
+#'f' : 't';
+#'g' : 'd';
+#'j' : 'n';
+#'k' : 'e';
+#'l' : 'i';
+#';' : 'o';
+
+# Bottom Row
+#'n' : 'k';
+
diff --git a/examples/md1Map.kll b/examples/md1Map.kll
new file mode 100644 (file)
index 0000000..76c0b75
--- /dev/null
@@ -0,0 +1,78 @@
+Name = MD1;
+Version = 0.1;
+Author = "HaaTa (Jacob Alexander) 2014";
+KLL = 0.3;
+
+# Modified Date
+Date = 2014-08-24;
+
+
+# MOVE THIS SECTION to another file
+usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 );
+# END SECTION
+
+
+S0x00 : U"Esc";
+S0x01 : U"1";
+S0x02 : U"2";
+S0x03 : U"3";
+S0x04 : U"4";
+S0x05 : U"5";
+S0x06 : U"6";
+S0x07 : U"7";
+S0x08 : U"8";
+S0x09 : U"9";
+S0x0A : U"0";
+S0x0B : U"Minus";
+S0x0C : U"Equal";
+S0x0D : U"Backslash";
+S0x0E : U"Tab";
+S0x0F : U"Q";
+S0x10 : U"W";
+S0x11 : U"E";
+S0x12 : U"R";
+S0x13 : U"T";
+S0x14 : U"Y";
+S0x15 : U"U";
+S0x16 : U"I";
+S0x17 : U"O";
+S0x18 : U"P";
+S0x19 : U"LBrace";
+S0x1A : U"RBrace";
+S0x1B : U"Delete";
+S0x1C : U"Ctrl";
+S0x1D : U"A";
+S0x1E : U"S";
+S0x1F : U"D";
+S0x20 : U"F";
+S0x21 : U"G";
+S0x22 : U"H";
+S0x23 : U"J";
+S0x24 : U"K";
+S0x25 : U"L";
+S0x26 : U"Semicolon";
+S0x27 : U"Quote";
+S0x28 : U"Enter";
+S0x29 : U"LShift";
+S0x2A : U"Z";
+S0x2B : U"X";
+S0x2C : U"C";
+S0x2D : U"V";
+S0x2E : U"B";
+S0x2F : U"N";
+S0x30 : U"M";
+S0x31 : U"Comma";
+S0x32 : U"Period";
+S0x33 : U"Slash";
+S0x34 : U"RShift";
+S0x35 : U"Function1"; # Fun key
+S0x36 : U"Function2"; # Left Blank Key
+S0x37 : U"LAlt";
+S0x38 : U"LGui";
+S0x39 : U"Space";
+S0x3A : U"RGui";
+S0x3B : U"RAlt";
+S0x3C : U"Function3"; # Right Blank Key 1
+S0x3D : U"Function4"; # Right Blank Key 2
+S0x3E : U"BackTick";
+
diff --git a/examples/simple1.kll b/examples/simple1.kll
new file mode 100644 (file)
index 0000000..5b91360
--- /dev/null
@@ -0,0 +1,45 @@
+Name = colemak;
+Author = "HaaTa (Jacob Alexander) 2014";
+KLL = 0.3;
+
+myCapability2 => myFunc2();
+myCapability3 => myFunc3( myArg1 : 2 );
+myCapability  => myFunc( myArg1 : 1, myArg2 : 4 );
+
+S0x3 : myCapability2();
+S0x4 : myCapability2() + myCapability3(0x5);
+S0x5 : myCapability2(), myCapability3(0x6);
+S0x7 : myCapability3( 0x8 );
+S0x8 : myCapability( 0x2, 0x4 );
+S0x6 : 'abcdDfF';
+S0x6 : 'abcdDfF', U0xb;
+S0x6 : 'abcdDfF', U0xb, U[0x1-0x4,0xa];
+S0x40 : U[0x1];
+S0x40 : U[0x1,0x2];
+S0x40 : U[0x1-0x4];
+S0x40 : U[0x1-0x4,0xa];
+S0x40 : U[0x1-0x4,0xa] + U0x5;
+S0x40 : U[0x1-0x4,0xa] + U[0x5-0x20];
+S0x40 : U[0x1-0x4,0xa] + U[0x5-0x20], U33;
+S0x40 : U0x01, U2;
+S0x40 : U0x01, U2+U3;
+S0x40 : U0x01, U2+U"Esc";
+S0x0B : U["A"-"5"];
+S0x0B : U["Esc"];
+S0x46 : U0x01, U2+U["2"-"5"];
+S0x40 : U0x01, U2+U["Esc"];
+S0x40 : U0x01, U2+U["Esc", "A", "C"-"F"];
+S0x40 : U"Backspace";
+S0x1+S0x2 : U"2";
+S0x3,S0x4 : U"1";
+S0x1+S0x2,S0x3,S0x4 : U"3";
+S[ 0x5 ] : U"4";
+S[ 0x5, 0x6 ] : U"5";
+S[ 0x5, 0x6, 0x7, 0x8 ] : U"5";
+S[ 0x7 - 0x9 ] : U"6";
+S[ 0x2 - 0x9, 0x10 ] : U"r";
+S[ 0x2 - 0x9, 0x10 ]+S[0x5 - 0x6, 0x9],S0xA+S0xB : U"r";
+
+S0x42 : U"}";
+S0x42 : U"Esc";
+
diff --git a/examples/simple2.kll b/examples/simple2.kll
new file mode 100644 (file)
index 0000000..c89204f
--- /dev/null
@@ -0,0 +1,17 @@
+Name = colemak;
+Author = "HaaTa (Jacob Alexander) 2014";
+KLL = 0.3;
+
+myCapability2 => myFunc2();
+myCapability3 => myFunc3( myArg1 : 2 );
+myCapability  => myFunc( myArg1 : 1, myArg2 : 4 );
+
+S0x3 : myCapability2();
+S0x6 : 'abcdDfF';
+S0x40 : U[0x1];
+S0x40 : U[0x1-0x4];
+S0x0B : U["Esc"];
+S[ 0x7 - 0x9 ] : U"6";
+S[ 0x7 - 0x9 ], S[0x2,0x3] : U"6";
+S[ 0x2 - 0x9, 0x10 ] : U"r";
+
diff --git a/examples/simpleExample.kll b/examples/simpleExample.kll
new file mode 100644 (file)
index 0000000..a31044e
--- /dev/null
@@ -0,0 +1,10 @@
+Name = colemak;
+Author = "HaaTa (Jacob Alexander) 2014";
+KLL = 0.2a;
+
+#S0x40 : U0x43;
+S0x40 : U"Backspace";
+
+S0x42 : U"}";
+S0x42 : U"Esc";
+
diff --git a/templateKeymap.h b/templateKeymap.h
deleted file mode 100644 (file)
index 5ec572e..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/* Copyright (C) 2014 by Jacob Alexander
- *
- * This file is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This file is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this file.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-// Generated MSG /w timestamp and compiler information
-
-#ifndef __generatedKeymap_h
-#define __generatedKeymap_h
-
-// ----- Includes -----
-
-// KLL Include
-#include <kll.h>
-
-
-
-// ----- Capabilities -----
-
-// Indexed Capabilities Table
-<|CapabilitiesList|>
-
-
-// -- Result Macros
-
-// Result Macro Guides
-<|ResultMacros|>
-
-
-// -- Result Macro List
-
-// Indexed Table of Result Macros
-<|ResultMacroList|>
-
-
-// -- Trigger Macros
-
-// Trigger Macro Guides
-<|TriggerMacros|>
-
-
-// -- Trigger Macro List
-
-// Indexed Table of Trigger Macros
-<|TriggerMacroList|>
-
-
-
-// ----- Trigger Maps -----
-
-// MaxScanCode
-// - This is retrieved from the KLL configuration
-// - Should be corollated with the max scan code in the scan module
-// - Maximum value is 0x100 (0x0 to 0xFF)
-// - Increasing it beyond the keyboard's capabilities is just a waste of ram...
-#define MaxScanCode <MaxScanCode>
-
-// -- Trigger Lists
-//
-// Index 0: # of triggers in list
-// Index n: pointer to trigger macro - use tm() macro
-
-// - Default Layer -
-<|DefaultLayerTriggerList|>
-
-
-// - Partial Layers -
-<|PartialLayerTriggerLists|>
-
-
-// -- ScanCode Indexed Maps
-// Maps to a trigger list of macro pointers
-//                 _
-// <scan code> -> |T|
-//                |r| -> <trigger macro pointer 1>
-//                |i|
-//                |g| -> <trigger macro pointer 2>
-//                |g|
-//                |e| -> <trigger macro pointer 3>
-//                |r|
-//                |s| -> <trigger macro pointer n>
-//                 -
-
-// - Default Map for ScanCode Lookup -
-<|DefaultLayerScanMap|>
-
-// - Partial Layer ScanCode Lookup Maps -
-<|PartialLayerScanMaps|>
-
-
-
-// ----- Layer Index -----
-
-// -- Layer Index List
-//
-// Index 0: Default map
-// Index n: Additional layers
-<|LayerIndexList|>
-
-
-
-#endif // __generatedKeymap_h
-
diff --git a/templates/kiibohdKeymap.h b/templates/kiibohdKeymap.h
new file mode 100644 (file)
index 0000000..5ec572e
--- /dev/null
@@ -0,0 +1,114 @@
+/* Copyright (C) 2014 by Jacob Alexander
+ *
+ * This file is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This file is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this file.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// Generated MSG /w timestamp and compiler information
+
+#ifndef __generatedKeymap_h
+#define __generatedKeymap_h
+
+// ----- Includes -----
+
+// KLL Include
+#include <kll.h>
+
+
+
+// ----- Capabilities -----
+
+// Indexed Capabilities Table
+<|CapabilitiesList|>
+
+
+// -- Result Macros
+
+// Result Macro Guides
+<|ResultMacros|>
+
+
+// -- Result Macro List
+
+// Indexed Table of Result Macros
+<|ResultMacroList|>
+
+
+// -- Trigger Macros
+
+// Trigger Macro Guides
+<|TriggerMacros|>
+
+
+// -- Trigger Macro List
+
+// Indexed Table of Trigger Macros
+<|TriggerMacroList|>
+
+
+
+// ----- Trigger Maps -----
+
+// MaxScanCode
+// - This is retrieved from the KLL configuration
+// - Should be corollated with the max scan code in the scan module
+// - Maximum value is 0x100 (0x0 to 0xFF)
+// - Increasing it beyond the keyboard's capabilities is just a waste of ram...
+#define MaxScanCode <MaxScanCode>
+
+// -- Trigger Lists
+//
+// Index 0: # of triggers in list
+// Index n: pointer to trigger macro - use tm() macro
+
+// - Default Layer -
+<|DefaultLayerTriggerList|>
+
+
+// - Partial Layers -
+<|PartialLayerTriggerLists|>
+
+
+// -- ScanCode Indexed Maps
+// Maps to a trigger list of macro pointers
+//                 _
+// <scan code> -> |T|
+//                |r| -> <trigger macro pointer 1>
+//                |i|
+//                |g| -> <trigger macro pointer 2>
+//                |g|
+//                |e| -> <trigger macro pointer 3>
+//                |r|
+//                |s| -> <trigger macro pointer n>
+//                 -
+
+// - Default Map for ScanCode Lookup -
+<|DefaultLayerScanMap|>
+
+// - Partial Layer ScanCode Lookup Maps -
+<|PartialLayerScanMaps|>
+
+
+
+// ----- Layer Index -----
+
+// -- Layer Index List
+//
+// Index 0: Default map
+// Index n: Additional layers
+<|LayerIndexList|>
+
+
+
+#endif // __generatedKeymap_h
+