Line | |
---|
1 | /*
|
---|
2 | FirmataFeature.h
|
---|
3 | Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved.
|
---|
4 | Copyright (C) 2010-2011 Paul Stoffregen. All rights reserved.
|
---|
5 | Copyright (C) 2009 Shigeru Kobayashi. All rights reserved.
|
---|
6 | Copyright (C) 2013 Norbert Truchsess. All rights reserved.
|
---|
7 | Copyright (C) 2009-2016 Jeff Hoefs. All rights reserved.
|
---|
8 |
|
---|
9 | This library is free software; you can redistribute it and/or
|
---|
10 | modify it under the terms of the GNU Lesser General Public
|
---|
11 | License as published by the Free Software Foundation; either
|
---|
12 | version 2.1 of the License, or (at your option) any later version.
|
---|
13 |
|
---|
14 | Interface for Firmata feature classes.
|
---|
15 |
|
---|
16 | This version of FirmataFeature.h differs from the ConfigurableFirmata
|
---|
17 | version in the following ways:
|
---|
18 |
|
---|
19 | - Imports Firmata.h rather than ConfigurableFirmata.h
|
---|
20 |
|
---|
21 | See file LICENSE.txt for further informations on licensing terms.
|
---|
22 | */
|
---|
23 |
|
---|
24 | #ifndef FirmataFeature_h
|
---|
25 | #define FirmataFeature_h
|
---|
26 |
|
---|
27 | #include <Firmata.h>
|
---|
28 |
|
---|
29 | class FirmataFeature
|
---|
30 | {
|
---|
31 | public:
|
---|
32 | virtual void handleCapability(byte pin) = 0;
|
---|
33 | virtual boolean handlePinMode(byte pin, int mode) = 0;
|
---|
34 | virtual boolean handleSysex(byte command, byte argc, byte* argv) = 0;
|
---|
35 | virtual void reset() = 0;
|
---|
36 | };
|
---|
37 |
|
---|
38 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.