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.
Diff: main.cpp
- Revision:
- 1:93504aad8a05
- Parent:
- 0:3f43ed494764
diff -r 3f43ed494764 -r 93504aad8a05 main.cpp
--- a/main.cpp Thu Sep 28 03:32:27 2017 +0000
+++ b/main.cpp Thu Sep 28 04:47:40 2017 +0000
@@ -22,6 +22,7 @@
UART_buf RX_BUF;
+volatile uint8_t Dot_flag = 0, Dot_data;
void SerialUARTRX_ISR(void);
void data_write(char *data, int len);
void Command_Write(uint8_t com);
@@ -38,6 +39,11 @@
while(1)
{
+ if(Dot_flag)
+ {
+ Dot_flag = 0;
+ char_data_write(Dot_data);
+ }
}
}
@@ -89,7 +95,8 @@
case 0x01:
if(RX_BUF.CMD == 0x17)
{
- char_data_write(RX_BUF.DATA[0]);
+ Dot_flag = 1;
+ Dot_data = RX_BUF.DATA[0];
}
break;
}
@@ -120,6 +127,8 @@
// Blinking Set -> off
// Display Set -> on
Command_Write((char)0x81);
+
+ char_data_write(0x20);
}
void char_data_write(char data)