RDCM-802 Compass Module
RDCM802.h
- Committer:
- tosihisa
- Date:
- 2010-08-06
- Revision:
- 3:95ffff059a20
- Parent:
- 2:f472eda658ec
File content as of revision 3:95ffff059a20:
/** * @section LICENSE * * This source code is "zlib" license. * Of course, this is not a part of the zlib software. * The license is zlib license. * * Copyright (C) 2010 tosihisa <tosihisa _at_ netfort.gr.jp> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * * @section DESCRIPTION * */ #ifndef MBED_RDCM802_H #define MBED_RDCM802_H class RDCM802 { public: RDCM802( PinName d0, PinName d1 ,PinName d2 ); int read(); char *toString(); operator int() { return read(); }; private: DigitalIn _d0; DigitalIn _d1; DigitalIn _d2; }; #endif /* MBED_RDCM802_H */