keybrd library is an open source library for creating custom-keyboard firmware.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

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_LED sends a scancode 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