Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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);
}
}
}