IoT Example
Dependencies: C12832 LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
C027.h@5:fe907e2e0d6c, 2014-08-21 (annotated)
- Committer:
- icraggs
- Date:
- Thu Aug 21 12:42:19 2014 +0000
- Revision:
- 5:fe907e2e0d6c
- Child:
- 7:2fb7a98b559c
Refactoring for K64F
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
icraggs | 5:fe907e2e0d6c | 1 | /******************************************************************************* |
icraggs | 5:fe907e2e0d6c | 2 | * Copyright (c) 2014 IBM Corp. |
icraggs | 5:fe907e2e0d6c | 3 | * |
icraggs | 5:fe907e2e0d6c | 4 | * All rights reserved. This program and the accompanying materials |
icraggs | 5:fe907e2e0d6c | 5 | * are made available under the terms of the Eclipse Public License v1.0 |
icraggs | 5:fe907e2e0d6c | 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. |
icraggs | 5:fe907e2e0d6c | 7 | * |
icraggs | 5:fe907e2e0d6c | 8 | * The Eclipse Public License is available at |
icraggs | 5:fe907e2e0d6c | 9 | * http://www.eclipse.org/legal/epl-v10.html |
icraggs | 5:fe907e2e0d6c | 10 | * and the Eclipse Distribution License is available at |
icraggs | 5:fe907e2e0d6c | 11 | * http://www.eclipse.org/org/documents/edl-v10.php. |
icraggs | 5:fe907e2e0d6c | 12 | * |
icraggs | 5:fe907e2e0d6c | 13 | * Contributors: |
icraggs | 5:fe907e2e0d6c | 14 | * Ian Craggs - initial implementation |
icraggs | 5:fe907e2e0d6c | 15 | *******************************************************************************/ |
icraggs | 5:fe907e2e0d6c | 16 | |
icraggs | 5:fe907e2e0d6c | 17 | #if !defined(K64F_H) |
icraggs | 5:fe907e2e0d6c | 18 | #define K64F_H |
icraggs | 5:fe907e2e0d6c | 19 | |
icraggs | 5:fe907e2e0d6c | 20 | C12832 lcd(D11, D13, D12, D7, D10); |
icraggs | 5:fe907e2e0d6c | 21 | DigitalOut led1(LED1); DigitalOut led2(LED2); DigitalOut led3(LED3); |
icraggs | 5:fe907e2e0d6c | 22 | MMA7660 MMA(D14, D15); |
icraggs | 5:fe907e2e0d6c | 23 | LM75B sensor(D14,D15); |
icraggs | 5:fe907e2e0d6c | 24 | DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Left(A4); DigitalIn Right(A5); DigitalIn Click(D4); |
icraggs | 5:fe907e2e0d6c | 25 | AnalogIn ain1 (A0); AnalogIn ain2 (A1); |
icraggs | 5:fe907e2e0d6c | 26 | |
icraggs | 5:fe907e2e0d6c | 27 | #define LED2_OFF 0 |
icraggs | 5:fe907e2e0d6c | 28 | #define LED2_ON 1 |
icraggs | 5:fe907e2e0d6c | 29 | |
icraggs | 5:fe907e2e0d6c | 30 | #define DEFAULT_TYPE_NAME "iotsample-mbed-c027" |
icraggs | 5:fe907e2e0d6c | 31 | |
icraggs | 5:fe907e2e0d6c | 32 | #endif |