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@2:46adf929a2ba, 2010-08-23 (annotated)
- Committer:
- faruq
- Date:
- Mon Aug 23 14:36:14 2010 +0000
- Revision:
- 2:46adf929a2ba
- Parent:
- 1:ba08ad32bb88
- Child:
- 3:599209bd1270
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 | 1:ba08ad32bb88 | 4 | MAX7456 vo (p5,p6,p7,p20,p19); |
| faruq | 0:869f2c6f960d | 5 | DigitalOut myled(LED1); |
| faruq | 2:46adf929a2ba | 6 | Serial pc(USBTX, USBRX); // tx, rx |
| 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 | 2:46adf929a2ba | 14 | vo.test(); |
| faruq | 2:46adf929a2ba | 15 | //vo.show(); |
| faruq | 2:46adf929a2ba | 16 | //vo.htrim(); |
| faruq | 2:46adf929a2ba | 17 | //vo.vtrim(); |
| faruq | 1:ba08ad32bb88 | 18 | |
| faruq | 2:46adf929a2ba | 19 | vo.locate(5,5); |
| faruq | 2:46adf929a2ba | 20 | vo.printf("hello world"); |
| faruq | 0:869f2c6f960d | 21 | wait(5.0); |
| faruq | 0:869f2c6f960d | 22 | vo.cls(); |
| faruq | 0:869f2c6f960d | 23 | } |