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.
48 lines
1.4 KiB
48 lines
1.4 KiB
6 years ago
|
/* Kaleidoscope-Model01-TestMode - A factory test mode for the Model 01.
|
||
|
* Copyright (C) 2017-2018 Keyboard.io, Inc.
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify it under
|
||
|
* the terms of the GNU General Public License as published by the Free Software
|
||
|
* Foundation, version 3.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||
|
* details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License along with
|
||
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
6 years ago
|
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD
|
||
|
#error "Model01 testmode not available for virtual builds"
|
||
|
#else
|
||
|
|
||
6 years ago
|
#ifdef ARDUINO_AVR_MODEL01
|
||
6 years ago
|
|
||
|
#include <Arduino.h>
|
||
5 years ago
|
#include "kaleidoscope/Runtime.h"
|
||
5 years ago
|
#include "kaleidoscope_internal/deprecations.h"
|
||
|
|
||
|
#define _DEPRECATED_MESSAGE_MODEL01_TESTMODE \
|
||
|
"The Model01-specific TestMode plugin has been deprecated in favour of\n" __NL__ \
|
||
|
"the more generic HardwareTestMode. Please migrate to the new one."
|
||
6 years ago
|
|
||
|
namespace kaleidoscope {
|
||
|
namespace plugin {
|
||
|
|
||
|
class TestMode : public kaleidoscope::Plugin {
|
||
|
public:
|
||
4 years ago
|
DEPRECATED(MODEL01_TESTMODE) EventHandlerResult beforeReportingState() {}
|
||
6 years ago
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
extern kaleidoscope::plugin::TestMode TestMode;
|
||
6 years ago
|
|
||
|
#endif
|
||
6 years ago
|
|
||
|
#endif
|