Sample code that showcases how to use IBMIoTF client library to connect the mbed LPC1768 or FRDM-K64F devices to the IBM Internet of Things Cloud service.

Dependencies:   C12832 IBMIoTF LM75B MMA7660

Committer:
lokeshhk
Date:
Wed May 31 10:03:52 2017 +0000
Revision:
5:48b6090e0df1
Parent:
4:a416fef97faa
Enabled sending real device events back

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sathipal 0:555ea43ec379 1 /*******************************************************************************
sathipal 1:e58533b6bc6b 2 * Copyright (c) 2015 IBM Corp.
sathipal 0:555ea43ec379 3 *
sathipal 0:555ea43ec379 4 * All rights reserved. This program and the accompanying materials
sathipal 0:555ea43ec379 5 * are made available under the terms of the Eclipse Public License v1.0
sathipal 0:555ea43ec379 6 * and Eclipse Distribution License v1.0 which accompany this distribution.
sathipal 0:555ea43ec379 7 *
sathipal 0:555ea43ec379 8 * The Eclipse Public License is available at
sathipal 0:555ea43ec379 9 * http://www.eclipse.org/legal/epl-v10.html
sathipal 0:555ea43ec379 10 * and the Eclipse Distribution License is available at
sathipal 0:555ea43ec379 11 * http://www.eclipse.org/org/documents/edl-v10.php.
sathipal 0:555ea43ec379 12 *
sathipal 0:555ea43ec379 13 * Contributors:
sathipal 0:555ea43ec379 14 * Ian Craggs - initial implementation
lokeshhk 4:a416fef97faa 15 * Sam Grove - added method to check the status of the Ethernet cable
sathipal 0:555ea43ec379 16 *******************************************************************************/
sathipal 0:555ea43ec379 17
sathipal 0:555ea43ec379 18 #if !defined(K64F_H)
sathipal 0:555ea43ec379 19 #define K64F_H
sathipal 0:555ea43ec379 20
lokeshhk 4:a416fef97faa 21 #if USE_LCD
sathipal 0:555ea43ec379 22 C12832 lcd(D11, D13, D12, D7, D10);
lokeshhk 4:a416fef97faa 23 #endif
sathipal 0:555ea43ec379 24 BusOut led2 (LED_BLUE);
sathipal 0:555ea43ec379 25 BusOut r (D5);
sathipal 0:555ea43ec379 26 BusOut g (D9);
sathipal 0:555ea43ec379 27 BusOut b (D8);
sathipal 0:555ea43ec379 28 MMA7660 MMA(PTE25, PTE24);
sathipal 0:555ea43ec379 29 LM75B sensor(PTE25, PTE24);
sathipal 0:555ea43ec379 30 DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Right(A4); DigitalIn Left(A5); DigitalIn Click(D4);
sathipal 0:555ea43ec379 31 AnalogIn ain1(A0); AnalogIn ain2(A1);
sathipal 0:555ea43ec379 32
sathipal 0:555ea43ec379 33 #define LED2_OFF 1
sathipal 0:555ea43ec379 34 #define LED2_ON 0
sathipal 0:555ea43ec379 35
sathipal 0:555ea43ec379 36 #define DEFAULT_TYPE_NAME "iotsample-mbed-k64f"
sathipal 0:555ea43ec379 37
lokeshhk 4:a416fef97faa 38 #endif