portable version of the cumulocity demo

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

DeviceIO.h

Committer:
ublox
Date:
2014-10-03
Revision:
56:2da813cc2f47
Parent:
55:ed3a2751a2b5

File content as of revision 56:2da813cc2f47:

#ifndef DEVICEIO_H
#define DEVICEIO_H

#include "mbed.h"
#include "GPSTracker.h"
#include "GPS.h"
#include "LM75B.h"
#include "MMA7660.h"
#include "C12832.h"

class DeviceIO
{
public:
    DeviceIO(GPSI2C&);

    bool resetButtonPressed();
    GPSTracker& gpsTracker();
    AnalogIn& analog1();
    AnalogIn& analog2();
    LM75B& temperatureSensor();
    MMA7660& accelerometer();
    void lcdPrint(const char*, const char* = NULL, const char* = NULL);

private:
    GPSTracker _gpsTracker;
    DigitalIn _resetButton;
    AnalogIn _analog1;
    AnalogIn _analog2;
    LM75B _temperatureSensor;
    MMA7660 _accelerometer;
    C12832 _lcd;
};

#endif