
实验
Dependencies: BSP_DISCO_L476VG LCD_DISCO_L476VG mbed-src-AV mbed
Fork of DISCO_L476VG_GlassLCD by
Revision 4:f335e1b6387d, committed 2016-07-03
- Comitter:
- fsllll
- Date:
- Sun Jul 03 10:00:01 2016 +0000
- Parent:
- 3:68aef4e7d4a3
- Commit message:
- pc.baud(115200);; pc.printf("fsl");
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 68aef4e7d4a3 -r f335e1b6387d main.cpp --- a/main.cpp Sat Jul 02 14:00:11 2016 +0000 +++ b/main.cpp Sun Jul 03 10:00:01 2016 +0000 @@ -2,6 +2,7 @@ #include "LCD_DISCO_L476VG.h" LCD_DISCO_L476VG lcd; +Serial pc(PA_9, PA_10); // tx, rx DigitalOut led_green(LED1); @@ -9,7 +10,7 @@ { uint32_t temp = 0; uint8_t stemp[7] = {0}; - uint8_t title[] = " DISCOVERY STM32L476"; + uint8_t title[] = "DISCOVERY STM32L476"; printf("Hello\n"); led_green = 1; @@ -17,7 +18,10 @@ // lcd.DisplayString((uint8_t *)"HELLO"); // wait(1); lcd.DisplayString((uint8_t *)"shuanglin"); - wait(5); + wait(2); + + pc.baud(115200); + pc.printf("fsl!\r\n"); printf("Scroll sequence\n"); led_green = 0;