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:6e1ddfeea3c6, committed 2016-09-04
- Comitter:
- yu10078999
- Date:
- Sun Sep 04 03:46:12 2016 +0000
- Parent:
- 0:459c997f4e02
- Commit message:
- 2
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Sep 04 03:12:52 2016 +0000
+++ b/main.cpp Sun Sep 04 03:46:12 2016 +0000
@@ -4,18 +4,17 @@
DigitalOut led(D2);
int main() {
+ esp8266.baud(115200);
while(1){
if (esp8266.readable()){
char val = esp8266.getc();
switch (val){
case 'a':
led = 1;
- val=led.read();
esp8266.putc(led);
break;
case 'b':
led = 0;
- val=led.read();
esp8266.putc(led);
break;
}