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
Please see https://mbed.org/users/kenjiArai/notebook/mbed-lpc1114fn28-barometer-with-data-logging/#
Diff: redirect_stdio/redirect_stdio.cpp
- Revision:
- 18:b3a27f681171
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/redirect_stdio/redirect_stdio.cpp Sat Aug 08 07:01:19 2020 +0000 @@ -0,0 +1,21 @@ +/* + * mbed Application program + * Redirect Standard Input/Output + * + * Copyright (c) 2020 Kenji Arai / JH1PJL + * http://www7b.biglobe.ne.jp/~kenjia/ + * https://os.mbed.com/users/kenjiArai/ + * Created: August 7th, 2020 + * Revised: August 7th, 2020 + */ + +#include "mbed.h" + +// Create a BufferedSerial object to be used by the system I/O retarget code +BufferedSerial pc(USBTX, USBRX, 9600); + +// the system I/O retarget +FileHandle *mbed::mbed_override_console(int fd) +{ + return &pc; +}