Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- LICENSING INFORMATION
- The firmware, known as an "arduino sketch" with the file extension .ino contained within this bundle contains firmware for the UniqueK Diverge Keyboard written by Blahlicus,
- this firmware is under a slightly modified version of the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) license, this means any
- individual who downloaded this piece of binary data must give appropriate credit to the original creator of this piece of software, this software is also non-commercial,
- anyone except for the original creator may not use this piece of code commercially and this software is also a non-derivatives work, this means, you ARE ALLOWED to remix,
- transform, or build upon the material, however, if you remix, transform, or build upon the material, you may not distribute the modified material. for more information about this license, you may visit the following website:
- http://creativecommons.org/licenses/by-nc-nd/4.0/
- furthermore, this piece of software is provided to you "as is." and the creator of this bundle (Blahlicus) make no express or
- implied warrenties whatsoever with respect to its functionality, operability, or use, including, without limitation, any implied warrenties of merchantability, fitness for a
- particular purpose, or infringement. the creator (Blahlicus) expressly disclaim any liability whatsoever for any diret, indirect, consequential, incidential and/or special
- damages, including, without limitation, lost revenues, lost profits, losses resulting from business interruption or loss of data, lost of functionality of devices including
- but not limited to any devices made by the unincorporated company known as "UniqueK" or "Unique Keyboard," regardless of the form of action or legal theory under which the
- liability may be asserted, even if advised of the possibility or likelihood of such damages.
- INTRODUCTION
- hey guys, blahlicus here, this file contains the array definition for the keys on the keyboard, the key names themselves should be self explanatory enough, for references to key names, you may check out the keydeclaration.ino file
- to edit the delay rates, you may edit the bRate value for baud rate and rDelay value for refresh delay (in milliseconds)
- */
- void inilayout()
- {
- bRate = 9600;
- rDelay = 10;
- // array is here
- keyLayout[0][0][0] = ktab;
- keyLayout[0][0][1] = kesc;
- keyLayout[0][0][2] = kf1;
- keyLayout[0][1][0] = kcaps;
- keyLayout[0][1][1] = kcaps;
- keyLayout[0][1][2] = k1;
- keyLayout[0][2][0] = klshift;
- keyLayout[0][2][1] = klshift;
- keyLayout[0][2][2] = klshift;
- keyLayout[0][3][0] = klctrl;
- keyLayout[0][3][1] = klctrl;
- keyLayout[0][3][2] = klctrl;
- keyLayout[1][0][0] = kq;
- keyLayout[1][0][1] = kq;
- keyLayout[1][0][2] = kf2;
- keyLayout[1][1][0] = ka;
- keyLayout[1][1][1] = klarrow;
- keyLayout[1][1][2] = k2;
- keyLayout[1][2][0] = kz;
- keyLayout[1][2][1] = kmediaprevious;
- keyLayout[1][2][2] = kz;
- keyLayout[1][3][0] = klwin;
- keyLayout[1][3][1] = klwin;
- keyLayout[1][3][2] = klwin;
- keyLayout[2][0][0] = kw;
- keyLayout[2][0][1] = kuarrow;
- keyLayout[2][0][2] = kf3;
- keyLayout[2][1][0] = ks;
- keyLayout[2][1][1] = kdarrow;
- keyLayout[2][1][2] = k3;
- keyLayout[2][2][0] = kx;
- keyLayout[2][2][1] = kmediaplay;
- keyLayout[2][2][2] = kx;
- keyLayout[2][3][0] = kfn;
- keyLayout[2][3][1] = kfn;
- keyLayout[2][3][2] = kfn;
- keyLayout[3][0][0] = ke;
- keyLayout[3][0][1] = ke;
- keyLayout[3][0][2] = kf4;
- keyLayout[3][1][0] = kd;
- keyLayout[3][1][1] = krarrow;
- keyLayout[3][1][2] = k4;
- keyLayout[3][2][0] = kc;
- keyLayout[3][2][1] = kmediapause;
- keyLayout[3][2][2] = kc;
- keyLayout[3][3][0] = klalt;
- keyLayout[3][3][1] = klalt;
- keyLayout[3][3][2] = klalt;
- keyLayout[4][0][0] = kr;
- keyLayout[4][0][1] = kr;
- keyLayout[4][0][2] = kf5;
- keyLayout[4][1][0] = kf;
- keyLayout[4][1][1] = kf;
- keyLayout[4][1][2] = k5;
- keyLayout[4][2][0] = kv;
- keyLayout[4][2][1] = kmedianext;
- keyLayout[4][2][2] = kv;
- keyLayout[4][3][0] = kspace;
- keyLayout[4][3][1] = kspace;
- keyLayout[4][3][2] = kspace;
- keyLayout[5][0][0] = kt;
- keyLayout[5][0][1] = kt;
- keyLayout[5][0][2] = kf6;
- keyLayout[5][1][0] = kg;
- keyLayout[5][1][1] = kg;
- keyLayout[5][1][2] = k6;
- keyLayout[5][2][0] = kb;
- keyLayout[5][2][1] = kb;
- keyLayout[5][2][2] = kb;
- keyLayout[5][3][0] = knull;
- keyLayout[5][3][1] = knull;
- keyLayout[5][3][2] = knull;
- keyLayout[6][0][0] = ky;
- keyLayout[6][0][1] = ky;
- keyLayout[6][0][2] = kf7;
- keyLayout[6][1][0] = kh;
- keyLayout[6][1][1] = kh;
- keyLayout[6][1][2] = k7;
- keyLayout[6][2][0] = kw;
- keyLayout[6][2][1] = kw;
- keyLayout[6][2][2] = kw;
- keyLayout[6][3][0] = kspacepm;
- keyLayout[6][3][1] = kspacepm;
- keyLayout[6][3][2] = kspacepm;
- keyLayout[7][0][0] = ku;
- keyLayout[7][0][1] = ku;
- keyLayout[7][0][2] = kf8;
- keyLayout[7][1][0] = kj;
- keyLayout[7][1][1] = kj;
- keyLayout[7][1][2] = k8;
- keyLayout[7][2][0] = km;
- keyLayout[7][2][1] = km;
- keyLayout[7][2][2] = km;
- keyLayout[7][3][0] = knull;
- keyLayout[7][3][1] = knull;
- keyLayout[7][3][2] = knull;
- keyLayout[8][0][0] = ki;
- keyLayout[8][0][1] = ki;
- keyLayout[8][0][2] = kf9;
- keyLayout[8][1][0] = kk;
- keyLayout[8][1][1] = kk;
- keyLayout[8][1][2] = k9;
- keyLayout[8][2][0] = kcomma;
- keyLayout[8][2][1] = kcomma;
- keyLayout[8][2][2] = kcomma;
- keyLayout[8][3][0] = kralt;
- keyLayout[8][3][1] = kralt;
- keyLayout[8][3][2] = kralt;
- keyLayout[9][0][0] = ko;
- keyLayout[9][0][1] = klbracket;
- keyLayout[9][0][2] = kf10;
- keyLayout[9][1][0] = kl;
- keyLayout[9][1][1] = ksemicolon;
- keyLayout[9][1][2] = k0;
- keyLayout[9][2][0] = kperiod;
- keyLayout[9][2][1] = kperiod;
- keyLayout[9][2][2] = kperiod;
- keyLayout[9][3][0] = kanimus;
- keyLayout[9][3][1] = kanimus;
- keyLayout[9][3][2] = kanimus;
- keyLayout[10][0][0] = kp;
- keyLayout[10][0][1] = krbracket;
- keyLayout[10][0][2] = kf11;
- keyLayout[10][1][0] = ksemicolon;
- keyLayout[10][1][1] = kapostrophe;
- keyLayout[10][1][2] = khyphen;
- keyLayout[10][2][0] = kslash;
- keyLayout[10][2][1] = kslash;
- keyLayout[10][2][2] = kslash;
- keyLayout[10][3][0] = krwin;
- keyLayout[10][3][1] = krwin;
- keyLayout[10][3][2] = krwin;
- keyLayout[11][0][0] = kbkspace;
- keyLayout[11][0][1] = kbkspace;
- keyLayout[11][0][2] = kf12;
- keyLayout[11][1][0] = kenter;
- keyLayout[11][1][1] = kenter;
- keyLayout[11][1][2] = kequals;
- keyLayout[11][2][0] = krshift;
- keyLayout[11][2][1] = krshift;
- keyLayout[11][2][2] = krshift;
- keyLayout[11][3][0] = krctrl;
- keyLayout[11][3][1] = krctrl;
- keyLayout[11][3][2] = krctrl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement