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

Dependents:   MjHover_Hello

MjHover.h

Committer:
matsujirushi
Date:
2015-04-02
Revision:
2:46cf70365584
Parent:
1:8e9c00c59101
Child:
3:b03009537d66

File content as of revision 2:46cf70365584:

#ifndef MJ_HOVER_H
#define MJ_HOVER_H

#include "mbed.h"

using namespace std;

namespace matsujirushi {

class MjHover
{
public:
    MjHover(I2C* i2c, uint8_t address, DigitalInOut* ts, DigitalInOut* reset_n);
    void begin();
    void setRelease();
    bool getStatus();
    uint8_t getEvent();
    static const char* getEventString(uint8_t eventByte);
    
private:
    I2C *i2c;
    uint8_t address;
    DigitalInOut* ts;       // I/O Transfer Status
    DigitalInOut* reset_n;  // O   Master Clear#

};

} // namespace matsujirushi

#endif