Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 00002 /* 00003 ************************************************************************** 00004 Wireless temperature receiver with ER400TRS transceiver. 00005 433 MHz transceiver. 180 bytes of data. 19200 Baud. 00006 00007 00008 Wiring: 00009 p1: antenna(17 cm). p2,p7(Host Ready Input), p9: ground. 00010 p5(Serial Data Out): mBed's p10(rx).p6(Serial Data In), p8: Vcc = +5 V. 00011 00012 Author: Lluis Nadal. August 2011. 00013 ************************************************************************** 00014 */ 00015 00016 #include "mbed.h" 00017 00018 00019 Serial pc(USBTX, USBRX); // tx, rx 00020 Serial receiver(p9, p10); // tx, rx 00021 char s[10]; 00022 00023 00024 int main() { 00025 00026 00027 wait(2); 00028 receiver.baud(19200); 00029 wait(0.5); 00030 00031 while (1) { 00032 if (receiver.readable()) { 00033 receiver.scanf("%s",s); 00034 00035 pc.printf( "%s C\r\n",s); 00036 } 00037 00038 } 00039 } 00040 00041
Generated on Sun Jul 17 2022 00:55:54 by
