IBM IoT Client WiFi example using Murata Type-YD WiFi module
Dependencies: C12832_fix LM75B MMA7660 MQTT PowerControl SNICInterface mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
RZA1H.h
00001 /******************************************************************************* 00002 * Copyright (c) 2014 IBM Corp. 00003 * 00004 * All rights reserved. This program and the accompanying materials 00005 * are made available under the terms of the Eclipse Public License v1.0 00006 * and Eclipse Distribution License v1.0 which accompany this distribution. 00007 * 00008 * The Eclipse Public License is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * and the Eclipse Distribution License is available at 00011 * http://www.eclipse.org/org/documents/edl-v10.php. 00012 * 00013 * Contributors: 00014 * Ian Craggs - initial implementation 00015 * Sam Grove - added method to check the status of the Ethernet cable 00016 *******************************************************************************/ 00017 00018 #if !defined(RZA1H_H) 00019 #define RZA1H_H 00020 00021 C12832 lcd(D11, D13, D12, D7, D10); 00022 BusOut led2 (LED_BLUE); 00023 BusOut r (D5); 00024 BusOut g (D9); 00025 BusOut b (D8); 00026 MMA7660 MMA(I2C_SDA, I2C_SCL); 00027 LM75B sensor(I2C_SDA, I2C_SCL); 00028 DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Right(A4); DigitalIn Left(A5); DigitalIn Click(D4); 00029 AnalogIn ain1(A0); AnalogIn ain2(A1); 00030 00031 #define LED2_OFF 1 00032 #define LED2_ON 0 00033 00034 #define DEFAULT_TYPE_NAME "iotsample-mbed-gr-peach" 00035 00036 static uint32_t linkStatus(void) 00037 { 00038 return (1); 00039 } 00040 00041 #endif
Generated on Fri Jul 15 2022 12:03:07 by 1.7.2