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.
Dependencies: BSP_DISCO_L476VG LCD_DISCO_L476VG mbed
Fork of DISCO_L476VG_GlassLCD by
main.cpp@5:a581e9699510, 2018-04-10 (annotated)
- Committer:
- adamzakaria
- Date:
- Tue Apr 10 21:59:24 2018 +0000
- Revision:
- 5:a581e9699510
- Parent:
- 2:16502e83726a
; ;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bcostm | 0:0ecb0cbf4c30 | 1 | #include "mbed.h" |
| bcostm | 0:0ecb0cbf4c30 | 2 | #include "LCD_DISCO_L476VG.h" |
| bcostm | 0:0ecb0cbf4c30 | 3 | |
| bcostm | 0:0ecb0cbf4c30 | 4 | LCD_DISCO_L476VG lcd; |
| bcostm | 0:0ecb0cbf4c30 | 5 | |
| bcostm | 0:0ecb0cbf4c30 | 6 | DigitalOut led_green(LED1); |
| bcostm | 0:0ecb0cbf4c30 | 7 | |
| adamzakaria | 5:a581e9699510 | 8 | #include <stdio.h> |
| bcostm | 0:0ecb0cbf4c30 | 9 | int main() |
| bcostm | 0:0ecb0cbf4c30 | 10 | { |
| adamzakaria | 5:a581e9699510 | 11 | printf("Hello World"); |
| adamzakaria | 5:a581e9699510 | 12 | unsigned int a; |
| adamzakaria | 5:a581e9699510 | 13 | a=0; |
| adamzakaria | 5:a581e9699510 | 14 | while(a<35){ |
| adamzakaria | 5:a581e9699510 | 15 | if(a<15){ |
| adamzakaria | 5:a581e9699510 | 16 | a=a+1; |
| adamzakaria | 5:a581e9699510 | 17 | printf("a is less than 15"); |
| adamzakaria | 5:a581e9699510 | 18 | } |
| adamzakaria | 5:a581e9699510 | 19 | else{ |
| adamzakaria | 5:a581e9699510 | 20 | a=a+1; |
| adamzakaria | 5:a581e9699510 | 21 | printf("a is now greater than 15"); |
| bcostm | 0:0ecb0cbf4c30 | 22 | } |
| bcostm | 0:0ecb0cbf4c30 | 23 | } |
| adamzakaria | 5:a581e9699510 | 24 | return 0; |
| adamzakaria | 5:a581e9699510 | 25 | } |
| adamzakaria | 5:a581e9699510 | 26 | |
| adamzakaria | 5:a581e9699510 | 27 | |
| adamzakaria | 5:a581e9699510 | 28 |
