This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
2016-05-09 14:05:08 +00:00
|
|
|
#ifndef CODE_SC_H
|
|
|
|
#define CODE_SC_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <inttypes.h>
|
2016-11-18 10:21:50 +00:00
|
|
|
#include "Code.h"
|
2016-05-09 14:05:08 +00:00
|
|
|
|
2016-06-18 22:32:21 +00:00
|
|
|
/* Class Code_Sc_LED sends a scancode when press() or release() is called.
|
2016-05-09 14:05:08 +00:00
|
|
|
"S" stands for Scancode.
|
|
|
|
*/
|
|
|
|
class Code_Sc : public Code
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
const uint16_t scancode;
|
|
|
|
public:
|
|
|
|
Code_Sc(const uint16_t scancode): scancode(scancode) { }
|
|
|
|
virtual void press();
|
|
|
|
virtual void release();
|
|
|
|
};
|
|
|
|
#endif
|