AresENSEA-CDF2020 / Mbed OS Test_HC-05
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002  
00003 Serial pc(USBTX, USBRX); // tx, rx
00004 Serial device(PA_15, PB_7);  // tx, rx
00005  
00006 int main() {
00007     while(1) {
00008         if(device.readable()) {
00009             pc.putc(device.getc());
00010         }
00011     }
00012 }