Barometer program : Data Logger function includes Barometer & temperature (BMP180), Humidity & temp. (RHT03), Sunshine (Cds), RTC(M41T62) data. : Logging data saves into EEPROM (AT24C1024) using ring buffer function.

Dependencies:   AT24C1024 RHT03 TextLCD BMP180 M41T62

Fork of mbed_blinky by Mbed

Please see https://mbed.org/users/kenjiArai/notebook/mbed-lpc1114fn28-barometer-with-data-logging/#

main.cpp

Committer:
kenjiArai
Date:
2014-06-22
Revision:
14:18a98cad6109
Parent:
13:950adc9d6d61
Child:
15:065fbeddc305

File content as of revision 14:18a98cad6109:

/*
 * mbed Application program for the mbed LPC1114FN28
 * Test program -> Check I2C line control
 *
 * Copyright (c) 2014 Kenji Arai / JH1PJL
 *  http://www.page.sannet.ne.jp/kenjia/index.html
 *  http://mbed.org/users/kenjiArai/
 *      Created: June      22nd, 2014
 *      Revised: June      22nd, 2014
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
 * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
// You need to select (set 1) only one from blow
#define TST_NORMAL      1
#define TST_LCD8x2      0
#define TST_EEPROM      0
#define TST_BMP180      0
#define TST_M41T62      0
// You need to select (set 1) only one from above

#if TST_NORMAL 
#include "main_normal.h"
#endif

#if TST_LCD8x2 
#include "main_aqm0802.h"
#endif

#if TST_EEPROM 
#include "main_at24c1024.h"
#endif

#if TST_BMP180 
#include "main_bmp180.h"
#endif

#if TST_M41T62 
#include "main_m41t62.h"
#endif