keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

objects_scancodeNotShifted.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* This file instandiates Code_ScNS objects for multiple-layer keybrd sketches.
  2. The scancode is always sent in the unshifted state regardless of shift key position.
  3. Letters will still print as capital if CapsLck is on.
  4. If your uC is low on memory, copy needed lines rather than including the entire file.
  5. With the Arduino IDE, objects consume memory if they are used or not.
  6. The scancode macros are defined in the top part of
  7. Arduino\hardware\teensy\cores\teensy\keylayouts.h which is intended for use in "normal" programs.
  8. This has been tested on teensy2.0.
  9. */
  10. #include <Code_ScNS.h>
  11. #include <Code_ScNS_00.h>
  12. // ********** SCANCODES NOT SHIFTED *********
  13. Code_ScNS_00 sns_00; //double zero
  14. Code_ScNS sns_1(KEY_1); //could get similar effect with s_pad1
  15. Code_ScNS sns_2(KEY_2);
  16. Code_ScNS sns_3(KEY_3);
  17. Code_ScNS sns_4(KEY_4);
  18. Code_ScNS sns_5(KEY_5);
  19. Code_ScNS sns_6(KEY_6);
  20. Code_ScNS sns_7(KEY_7);
  21. Code_ScNS sns_8(KEY_8);
  22. Code_ScNS sns_9(KEY_9);
  23. Code_ScNS sns_0(KEY_0);
  24. Code_ScNS sns_minus(KEY_MINUS); //could get similar effect with s_padMinus
  25. Code_ScNS sns_equal(KEY_EQUAL);
  26. Code_ScNS sns_leftBracket(KEY_LEFT_BRACE); //[ ("brace" means curly bracket {})
  27. Code_ScNS sns_rightBracket(KEY_RIGHT_BRACE); //]
  28. Code_ScNS sns_backslash(KEY_BACKSLASH);
  29. Code_ScNS sns_semicolon(KEY_SEMICOLON);
  30. Code_ScNS sns_quote(KEY_QUOTE);
  31. Code_ScNS sns_tilde(KEY_TILDE);
  32. Code_ScNS sns_comma(KEY_COMMA);
  33. Code_ScNS sns_period(KEY_PERIOD);
  34. Code_ScNS sns_slash(KEY_SLASH);