![](/media/cache/group/u-blox_logo_trans.png.50x50_q85.png)
portable version of the cumulocity demo
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: DeviceIO.h
- Revision:
- 41:804f6a0bda26
- Child:
- 46:f6976fd64387
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DeviceIO.h Tue Jul 15 12:44:34 2014 +0000 @@ -0,0 +1,50 @@ +#ifndef DEVICEIO_H +#define DEVICEIO_H + +#include "mbed.h" +#include "LM75B.h" +#include "MMA7660.h" +#include "C12832.h" + +#define A0 P0_23 +#define A1 P0_24 +#define A2 P0_25 +#define A3 P0_26 +#define A4 P0_30 +#define A5 P1_31 + +#define D0 P4_29 +#define D1 P4_28 +#define D2 P2_13 +#define D3 P2_0 +#define D4 P2_12 +#define D5 P2_1 +#define D6 P2_2 +#define D7 P2_11 + +#define D8 P2_4 +#define D9 P2_3 +#define D10 P1_21 +#define D11 P1_24 +#define D12 P1_23 +#define D13 P1_20 + +#define SDA P0_0 +#define SCL P0_1 + +class DeviceIO +{ +public: + DeviceIO(); + + LM75B& temperatureSensor(); + MMA7660& accelerometer(); + void lcdPrint(const char*, const char* = NULL, const char* = NULL); + +private: + LM75B _temperatureSensor; + MMA7660 _accelerometer; + C12832 _lcd; +}; + +#endif \ No newline at end of file