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_Sc.h 468B

12345678910111213141516171819
  1. #ifndef CODE_SC_H
  2. #define CODE_SC_H
  3. #include <Arduino.h>
  4. #include <inttypes.h>
  5. #include <Code.h>
  6. /* Class Code_Sc is composed of one scancode, which it sends when press() or release() is called.
  7. "S" stands for Scancode.
  8. */
  9. class Code_Sc : public Code
  10. {
  11. private:
  12. const uint16_t scancode;
  13. public:
  14. Code_Sc(const uint16_t scancode): scancode(scancode) { }
  15. virtual void press();
  16. virtual void release();
  17. };
  18. #endif