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:
- Sateg
- Date:
- 2016-07-16
- Revision:
- 0:dd9b758d754b
- Child:
- 1:2475aa7aa52b
File content as of revision 0:dd9b758d754b:
#include "mbed.h"
#include "DOGL128.h"
DigitalOut myled(LED1);
DOGL128 LCD;
int main() {
printf("Hello\n");
LCD.cls();
LCD.set_auto_up(0);
LCD.invert(0);
int i = 2;
while(1) {
myled = !myled;
LCD.cls();
LCD.line(0, 0, 128, 64, 1);
LCD.line(0, 64, 128, 0, 1);
LCD.circle(64, 32, i, 1);
LCD.locate(0,0);
LCD.printf("Radius: ");
LCD.fillrect(32, 0, 45, 8, 1);
LCD.fillrect(0, 55, 35, 63, 1);
LCD.setmode(XOR);
LCD.printf("%d", i);
LCD.locate(0, 55);
LCD.printf("Inverted");
LCD.setmode(NORMAL);
LCD.copy_to_lcd();
i += 2;
i %= 30;
wait_ms(100);
}
}