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.h Source File

redirect_stdio.h

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 extern BufferedSerial pc;
00013 
00014 FileHandle *mbed::mbed_override_console(int fd);
00015 
00016 inline uint8_t readable(void)
00017 {
00018     return pc.readable();
00019 }
00020 
00021 inline void putc(uint8_t c)
00022 {
00023     char dt = c;
00024     pc.write(&dt, 1);
00025 }
00026 
00027 inline uint8_t getc(void)
00028 {
00029     int c = getchar();
00030     return (uint8_t)c;
00031 }
00032 
00033 inline void puts_wo_cr(char *bf, uint32_t len)
00034 {
00035     pc.write(bf, len);
00036 }