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:869f2c6f960d, 2010-08-23 (annotated)
- Committer:
- faruq
- Date:
- Mon Aug 23 10:39:40 2010 +0000
- Revision:
- 0:869f2c6f960d
- Child:
- 1:ba08ad32bb88
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| faruq | 0:869f2c6f960d | 1 | #include "mbed.h" |
| faruq | 0:869f2c6f960d | 2 | #include "MAX7456.h" |
| faruq | 0:869f2c6f960d | 3 | |
| faruq | 0:869f2c6f960d | 4 | MAX7456 vo (p5,p6,p7,p8,p9); |
| faruq | 0:869f2c6f960d | 5 | |
| faruq | 0:869f2c6f960d | 6 | DigitalOut myled(LED1); |
| faruq | 0:869f2c6f960d | 7 | |
| faruq | 0:869f2c6f960d | 8 | int main() { |
| faruq | 0:869f2c6f960d | 9 | |
| faruq | 0:869f2c6f960d | 10 | vo.format('P'); |
| faruq | 0:869f2c6f960d | 11 | vo.setdarkness(); |
| faruq | 0:869f2c6f960d | 12 | vo.initaddress(); |
| faruq | 0:869f2c6f960d | 13 | |
| faruq | 0:869f2c6f960d | 14 | vo.locate(1,1); |
| faruq | 0:869f2c6f960d | 15 | vo.putc("A"); |
| faruq | 0:869f2c6f960d | 16 | //vo.printf("Hello world!"); |
| faruq | 0:869f2c6f960d | 17 | wait(5.0); |
| faruq | 0:869f2c6f960d | 18 | vo.cls(); |
| faruq | 0:869f2c6f960d | 19 | } |