AX12.h@0:459be9e7bfe6, 2010-04-02 (annotated)
- Committer:
- deoryp
- Date:
- Fri Apr 02 23:51:11 2010 +0000
- Revision:
- 0:459be9e7bfe6
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
deoryp | 0:459be9e7bfe6 | 1 | /* |
deoryp | 0:459be9e7bfe6 | 2 | ax12.h - arbotiX Library for AX-12 Servos |
deoryp | 0:459be9e7bfe6 | 3 | Copyright (c) 2008,2009 Michael E. Ferguson. All right reserved. |
deoryp | 0:459be9e7bfe6 | 4 | Modifed by Scott Nichols, 2010 |
deoryp | 0:459be9e7bfe6 | 5 | |
deoryp | 0:459be9e7bfe6 | 6 | This library is free software; you can redistribute it and/or |
deoryp | 0:459be9e7bfe6 | 7 | modify it under the terms of the GNU Lesser General Public |
deoryp | 0:459be9e7bfe6 | 8 | License as published by the Free Software Foundation; either |
deoryp | 0:459be9e7bfe6 | 9 | version 2.1 of the License, or (at your option) any later version. |
deoryp | 0:459be9e7bfe6 | 10 | |
deoryp | 0:459be9e7bfe6 | 11 | This library is distributed in the hope that it will be useful, |
deoryp | 0:459be9e7bfe6 | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
deoryp | 0:459be9e7bfe6 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
deoryp | 0:459be9e7bfe6 | 14 | Lesser General Public License for more details. |
deoryp | 0:459be9e7bfe6 | 15 | |
deoryp | 0:459be9e7bfe6 | 16 | You should have received a copy of the GNU Lesser General Public |
deoryp | 0:459be9e7bfe6 | 17 | License along with this library; if not, write to the Free Software |
deoryp | 0:459be9e7bfe6 | 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
deoryp | 0:459be9e7bfe6 | 19 | */ |
deoryp | 0:459be9e7bfe6 | 20 | |
deoryp | 0:459be9e7bfe6 | 21 | #ifndef AX12_h |
deoryp | 0:459be9e7bfe6 | 22 | #define AX12_h |
deoryp | 0:459be9e7bfe6 | 23 | |
deoryp | 0:459be9e7bfe6 | 24 | class AX12 { |
deoryp | 0:459be9e7bfe6 | 25 | public: |
deoryp | 0:459be9e7bfe6 | 26 | AX12(int id); |
deoryp | 0:459be9e7bfe6 | 27 | int getId(); |
deoryp | 0:459be9e7bfe6 | 28 | void setId(int id); |
deoryp | 0:459be9e7bfe6 | 29 | |
deoryp | 0:459be9e7bfe6 | 30 | private: |
deoryp | 0:459be9e7bfe6 | 31 | int _id; |
deoryp | 0:459be9e7bfe6 | 32 | |
deoryp | 0:459be9e7bfe6 | 33 | }; |
deoryp | 0:459be9e7bfe6 | 34 | |
deoryp | 0:459be9e7bfe6 | 35 | #endif |