doppler shift / Mbed 2 deprecated STM32_ADC_InternalChannels_3

Dependencies:   mbed

main.cpp

Committer:
ryouheitakamoto
Date:
2020-12-07
Revision:
0:303ad425d2ac
Child:
1:f7f1c0356ffd

File content as of revision 0:303ad425d2ac:

#include "mbed.h"
Serial pc(SERIAL_TX, SERIAL_RX);
//Serial device(PA_9,PA_10);

DigitalIn dir(PA_10);
 
int main()
{
    while(1) {
        
    if(dir)
    {
      pc.printf("1\r\n");  
    }
    else
    {
      pc.printf("0\r\n"); 
    }
    
    }
}