Hover!( Microchip MGC3130 ) library. Now, it is development version. http://www.hoverlabs.co/#hover https://www.switch-science.com/catalog/2124/

Dependents:   MjHover_Hello

Committer:
matsujirushi
Date:
Sat Feb 28 07:45:07 2015 +0000
Revision:
1:8e9c00c59101
Parent:
0:051e1e753af5
Child:
2:46cf70365584
Code written.; But NOT tested!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
matsujirushi 0:051e1e753af5 1 #ifndef MJ_HOVER_H
matsujirushi 0:051e1e753af5 2 #define MJ_HOVER_H
matsujirushi 0:051e1e753af5 3
matsujirushi 0:051e1e753af5 4 #include "mbed.h"
matsujirushi 0:051e1e753af5 5
matsujirushi 0:051e1e753af5 6 namespace matsujirushi {
matsujirushi 0:051e1e753af5 7
matsujirushi 0:051e1e753af5 8 class MjHover
matsujirushi 0:051e1e753af5 9 {
matsujirushi 0:051e1e753af5 10 public:
matsujirushi 1:8e9c00c59101 11 MjHover(I2C* i2c, uint8_t address, DigitalInOut* ts, DigitalOut* reset_n);
matsujirushi 1:8e9c00c59101 12 void begin();
matsujirushi 1:8e9c00c59101 13 void setRelease();
matsujirushi 1:8e9c00c59101 14 bool getStatus();
matsujirushi 1:8e9c00c59101 15 uint8_t getEvent();
matsujirushi 1:8e9c00c59101 16 static const char* getEventString(uint8_t eventByte);
matsujirushi 0:051e1e753af5 17
matsujirushi 0:051e1e753af5 18 private:
matsujirushi 0:051e1e753af5 19 I2C *i2c;
matsujirushi 0:051e1e753af5 20 uint8_t address;
matsujirushi 1:8e9c00c59101 21 DigitalInOut* ts; // I/O Transfer Status
matsujirushi 1:8e9c00c59101 22 DigitalOut* reset_n; // O Master Clear#
matsujirushi 0:051e1e753af5 23
matsujirushi 0:051e1e753af5 24 };
matsujirushi 0:051e1e753af5 25
matsujirushi 0:051e1e753af5 26 } // namespace matsujirushi
matsujirushi 0:051e1e753af5 27
matsujirushi 0:051e1e753af5 28 #endif