This is a very simple guide, reviewing the steps required to get Blinky working on an Mbed OS platform.

Dependencies:   RemoteIR

Committer:
sb8718
Date:
Tue Jun 02 08:33:56 2020 +0000
Revision:
142:cb9e8d32d1b9
Parent:
141:ba61e3c64a6d
un - new commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sb8718 109:5274dd9bebe1 1 #include "mbed.h"
sb8718 140:2252b2df4bc6 2
sb8718 137:81b5a1672c6a 3 Serial pc(USBTX, USBRX, 115200);
sb8718 141:ba61e3c64a6d 4 RawSerial esp(D8, D2, 115200);
sb8718 140:2252b2df4bc6 5
sb8718 141:ba61e3c64a6d 6 int main()
sb8718 137:81b5a1672c6a 7 {
sb8718 135:03997cc206a4 8
sb8718 141:ba61e3c64a6d 9 char c;
sb8718 140:2252b2df4bc6 10
sb8718 141:ba61e3c64a6d 11 while(1) {
sb8718 141:ba61e3c64a6d 12 if(pc.readable()) {
sb8718 141:ba61e3c64a6d 13 c = pc.getc();
sb8718 141:ba61e3c64a6d 14 esp.putc(c);
sb8718 137:81b5a1672c6a 15 }
sb8718 141:ba61e3c64a6d 16 if(esp.readable()) {
sb8718 141:ba61e3c64a6d 17 c = esp.getc(); //while
sb8718 141:ba61e3c64a6d 18 pc.putc(c);
sb8718 130:d19783810c05 19 }
sb8718 131:8fb226cc407c 20 }
sb8718 142:cb9e8d32d1b9 21
sb8718 142:cb9e8d32d1b9 22
sb8718 142:cb9e8d32d1b9 23 // new commit!
sb8718 141:ba61e3c64a6d 24
sb8718 140:2252b2df4bc6 25 }