doppler shift / Mbed 2 deprecated STM32_ADC_InternalChannels

Dependencies:   mbed

main.cpp

Committer:
ryouheitakamoto
Date:
2020-12-07
Revision:
1:2cebb75d319e
Parent:
0:ea607cf8589c

File content as of revision 1:2cebb75d319e:

#include "mbed.h"
Serial pc(USBTX, USBRX, 9600);
Serial device(PA_9,PA_10);

//DigitalOut dir(D4);
 
int main()
{
    while(1) {
 
        while(pc.readable()){ 
            char a = device.getc();
            pc.putc(a);
        }
        
 
    }
}