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.

Code_LayeredScScBase.cpp 295B

1234567891011121314151617181920
  1. #include "Code_LayeredScScBase.h"
  2. void Code_LayeredScScBase::pressScancode()
  3. {
  4. if (layer)
  5. {
  6. scancode = scancode1;
  7. }
  8. else
  9. {
  10. scancode = scancode0;
  11. }
  12. Keyboard.press(scancode);
  13. }
  14. void Code_LayeredScScBase::release()
  15. {
  16. Keyboard.release(scancode);
  17. }