Data logger: Sensors -> Barometer & temperature (BMP180), Humidity & temp. (RHT03), Sunshine (Cds): Display -> 20 chracters x 4 lines: Strage -> EEPROM (AT24C1024): Special functions -> Enter sleep mode to save current, reading the logging data via serial line
Dependencies: AT24C1024 BMP180 M41T62 RHT03 TextLCD WakeUp mbed
Fork of LPC1114_barometer_with_data_logging by
Please refer following Notebook.
http://mbed.org/users/kenjiArai/notebook/mbed-lpc1114fn28-data-logger/
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