aboutsummaryrefslogtreecommitdiff
path: root/libraries/Robot_Control/Compass.h
blob: aa085a98a80111e5dca5ea21605d237bf81f2e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef Compass_h
#define Compass_h

#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

//0x21==0x42>>1, from bildr's code
#define HMC6352SlaveAddress 0x21
#define HMC6352ReadAddress 0x41

class Compass{
	public:
		void begin();
		float getReading();
	private:
		void _beginTransmission();
		void _endTransmission();

};

#endif