doppler shift / Mbed 2 deprecated 0xXX_complete

Dependencies:   mbed

main.cpp

Committer:
KINU
Date:
2020-12-11
Revision:
2:98f6cc48ca3a
Parent:
1:03cb3b25065c
Child:
3:aaeea2abc917

File content as of revision 2:98f6cc48ca3a:

#include "mbed.h"

Serial pc(SERIAL_TX, SERIAL_RX);
Serial device(PA_9,PA_10);
int main()
{

    while(1) {
        char c = device.getc();

        if(c == 0x7A) {
             pc.printf("%02hhx \n",c);
             if(device.getc() == 0x7A) {
             pc.printf("%02hhx \n",c);
           
        } else if(c == 0x79) {
            pc.printf("%02hhx \n",c);
        }
    }
}