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:680559cf86d5, 2015-11-02 (annotated)
- Committer:
- rtk
- Date:
- Mon Nov 02 22:35:33 2015 +0000
- Revision:
- 0:680559cf86d5
.;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rtk | 0:680559cf86d5 | 1 | #include "mbed.h" |
| rtk | 0:680559cf86d5 | 2 | #include "C12832.h" |
| rtk | 0:680559cf86d5 | 3 | |
| rtk | 0:680559cf86d5 | 4 | // Using Arduino pin notation |
| rtk | 0:680559cf86d5 | 5 | C12832 lcd(D11, D13, D12, D7, D10); |
| rtk | 0:680559cf86d5 | 6 | |
| rtk | 0:680559cf86d5 | 7 | int main() |
| rtk | 0:680559cf86d5 | 8 | { |
| rtk | 0:680559cf86d5 | 9 | int i=0; |
| rtk | 0:680559cf86d5 | 10 | |
| rtk | 0:680559cf86d5 | 11 | |
| rtk | 0:680559cf86d5 | 12 | |
| rtk | 0:680559cf86d5 | 13 | while (true) { |
| rtk | 0:680559cf86d5 | 14 | for (i=0; i<=lcd.width()-45; i++) { |
| rtk | 0:680559cf86d5 | 15 | lcd.cls(); |
| rtk | 0:680559cf86d5 | 16 | lcd.locate(i,16); |
| rtk | 0:680559cf86d5 | 17 | lcd.printf("BTS SNEC"); |
| rtk | 0:680559cf86d5 | 18 | wait(0.05); |
| rtk | 0:680559cf86d5 | 19 | } |
| rtk | 0:680559cf86d5 | 20 | for (i=lcd.width()-45; i>=0; i--) { |
| rtk | 0:680559cf86d5 | 21 | lcd.cls(); |
| rtk | 0:680559cf86d5 | 22 | lcd.locate(i,16); |
| rtk | 0:680559cf86d5 | 23 | lcd.printf("BTS SNEC"); |
| rtk | 0:680559cf86d5 | 24 | wait(0.05); |
| rtk | 0:680559cf86d5 | 25 | } |
| rtk | 0:680559cf86d5 | 26 | } |
| rtk | 0:680559cf86d5 | 27 | } |
| rtk | 0:680559cf86d5 | 28 | |
| rtk | 0:680559cf86d5 | 29 |