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.
main.cpp@0:702e0e56ae11, 2019-04-13 (annotated)
- Committer:
- JuanBorra
- Date:
- Sat Apr 13 20:42:47 2019 +0000
- Revision:
- 0:702e0e56ae11
Added LCD example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JuanBorra | 0:702e0e56ae11 | 1 | #include "mbed.h" |
JuanBorra | 0:702e0e56ae11 | 2 | #include "seg_LCD.h" |
JuanBorra | 0:702e0e56ae11 | 3 | |
JuanBorra | 0:702e0e56ae11 | 4 | |
JuanBorra | 0:702e0e56ae11 | 5 | int main(){ |
JuanBorra | 0:702e0e56ae11 | 6 | SegLCD_Init(); |
JuanBorra | 0:702e0e56ae11 | 7 | while(true){ |
JuanBorra | 0:702e0e56ae11 | 8 | for(int i=0;i<9999;i++){ |
JuanBorra | 0:702e0e56ae11 | 9 | SegLCD_DisplayDecimal(i); |
JuanBorra | 0:702e0e56ae11 | 10 | wait(0.05); |
JuanBorra | 0:702e0e56ae11 | 11 | } |
JuanBorra | 0:702e0e56ae11 | 12 | } |
JuanBorra | 0:702e0e56ae11 | 13 | } |
JuanBorra | 0:702e0e56ae11 | 14 | |
JuanBorra | 0:702e0e56ae11 | 15 |