move uart
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 Serial LED(PB_6,PB_7); 00003 int main(){ 00004 LED.baud(9600); 00005 while(1){ 00006 LED.putc(10); 00007 //LED.printf("37"); 00008 00009 //wait_ms(100); 00010 wait(2); 00011 LED.putc(20); 00012 wait(2); 00013 LED.putc(30); 00014 wait(2); 00015 LED.putc(40); 00016 wait(2); 00017 00018 /* 00019 wait(5); 00020 LED.printf("down\n\r"); 00021 wait(5); 00022 LED.printf("right\n\r"); 00023 wait(5); 00024 LED.printf("left\n\r"); 00025 wait(5); 00026 */ 00027 } 00028 }
Generated on Tue Sep 6 2022 21:15:49 by
1.7.2