Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
MeCompass.cpp File Reference

Driver for MeCompass module. More...

#include "MeCompass.h"
#include <avr/wdt.h>

Detailed Description

Driver for MeCompass module.

Author
MakeBlock
Version
V1.0.1
Date
2015/09/08
Copyright
This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
Open Source Licensing GPL V2
This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
Description
This file is a drive for MeCompass module, It supports MeCompass V1.0 device provided by MakeBlock.
Method List:
  1. void MeCompass::setpin(uint8_t keyPin, uint8_t ledPin)
  2. void MeCompass::begin(void)
  3. bool MeCompass::testConnection(void)
  4. double MeCompass::getAngle(void)
  5. int16_t MeCompass::getHeadingX(void)
  6. int16_t MeCompass::getHeadingY(void)
  7. int16_t MeCompass::getHeadingZ(void)
  8. int16_t MeCompass::getHeading(int16_t *x, int16_t *y, int16_t *z)
History:
<Author>         <Time>        <Version>        <Descr>
Lawrence         2015/09/03           1.0.0       Rebuild the old lib.
Lawrence         2015/09/08           1.0.1       Added some comments and macros.