keybrd library is an open source library for creating custom-keyboard firmware.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.

instantiations_scancodeNotShifted.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef INSTANTIATIONS_SCANCODENOTSHIFTED_H
  2. #define INSTANTIATIONS_SCANCODENOTSHIFTED_H
  3. /* This file instandiates Code_ScNS objects for multiple-layer keybrd sketches.
  4. The scancode is always sent in the unshifted state regardless of shift key position.
  5. Letters will still print as capital if CapsLck is on.
  6. If your uC is low on memory, copy needed lines rather than including the entire file.
  7. With the Arduino IDE, objects consume memory if they are used or not.
  8. The scancode macros are defined in the top part of
  9. Arduino\hardware\teensy\cores\teensy\keylayouts.h which is intended for use in "normal" programs.
  10. This has been tested on teensy2.0.
  11. */
  12. #include "Code_ScNS.h"
  13. #include "Code_ScNS_00.h"
  14. // ********** SCANCODES NOT SHIFTED *********
  15. Code_ScNS_00 ns_00; //double zero
  16. Code_ScNS ns_1(KEY_1); //could get similar effect with s_pad1
  17. Code_ScNS ns_2(KEY_2);
  18. Code_ScNS ns_3(KEY_3);
  19. Code_ScNS ns_4(KEY_4);
  20. Code_ScNS ns_5(KEY_5);
  21. Code_ScNS ns_6(KEY_6);
  22. Code_ScNS ns_7(KEY_7);
  23. Code_ScNS ns_8(KEY_8);
  24. Code_ScNS ns_9(KEY_9);
  25. Code_ScNS ns_0(KEY_0);
  26. Code_ScNS ns_minus(KEY_MINUS); //could get similar effect with s_padMinus
  27. Code_ScNS ns_equal(KEY_EQUAL);
  28. Code_ScNS ns_leftBracket(KEY_LEFT_BRACE); //[ ("brace" means curly bracket {})
  29. Code_ScNS ns_rightBracket(KEY_RIGHT_BRACE); //]
  30. Code_ScNS ns_backslash(KEY_BACKSLASH);
  31. Code_ScNS ns_semicolon(KEY_SEMICOLON);
  32. Code_ScNS ns_quote(KEY_QUOTE);
  33. Code_ScNS ns_tilde(KEY_TILDE);
  34. Code_ScNS ns_comma(KEY_COMMA);
  35. Code_ScNS ns_period(KEY_PERIOD);
  36. Code_ScNS ns_slash(KEY_SLASH);