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
- Committer:
- faruq
- Date:
- 2010-08-26
- Revision:
- 3:599209bd1270
- Parent:
- 2:46adf929a2ba
- Child:
- 4:804abcb28b86
File content as of revision 3:599209bd1270:
#include "mbed.h"
#include "MAX7456.h"
MAX7456 vo (p5,p6,p7,p20,p19);
DigitalOut myled(LED1);
Serial pc(USBTX, USBRX); // tx, rx
int main() {
vo.format('P');
vo.setdarkness();
vo.initaddress();
vo.test();
vo.htrim('+',17);
vo.vtrim('-',7);
vo.cls();
vo.locate(5,5);
vo.printf("Hello World");
int count = 0;
/*
for (int y = 0 ; y < 16 ; y++) {
for (int x = 0 ; x < 30 ; x++) {
vo.locate(x,y);
count= count+1;
vo.putc(count);
wait(0.01);
printf("/%d/",count);
}
}
*/
/*
vo.locate(1,1);
vo.printf("good bye");
wait(2.0);
vo.locate(1,1);
vo.printf("error");
*/
}