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.
Revision 1:93504aad8a05, committed 2017-09-28
- Comitter:
- SMART_CLEO
- Date:
- Thu Sep 28 04:47:40 2017 +0000
- Parent:
- 0:3f43ed494764
- Commit message:
- SMART_CLEO
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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)