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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers redirect_stdio.cpp Source File

redirect_stdio.cpp

00001 /*
00002  * mbed Application program
00003  *      Redirect Standard Input/Output
00004  *
00005  * Copyright (c) 2020 Kenji Arai / JH1PJL
00006  *  http://www7b.biglobe.ne.jp/~kenjia/
00007  *  https://os.mbed.com/users/kenjiArai/
00008  *      Created: August     7th, 2020
00009  *      Revised: August     7th, 2020
00010  */
00011 
00012 #include "mbed.h"
00013 
00014 // Create a BufferedSerial object to be used by the system I/O retarget code
00015 BufferedSerial pc(USBTX, USBRX, 9600);
00016 
00017 //  the system I/O retarget
00018 FileHandle *mbed::mbed_override_console(int fd)
00019 {
00020     return &pc;
00021 }