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.
Revision 0:dd9b758d754b, committed 2016-07-16
- Comitter:
- Sateg
- Date:
- Sat Jul 16 22:47:03 2016 +0000
- Child:
- 1:2475aa7aa52b
- Commit message:
- Simple test program showcasing various features.
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DOGL128.lib Sat Jul 16 22:47:03 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/PB/code/DOGL128/#ec5db47782a3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Jul 16 22:47:03 2016 +0000
@@ -0,0 +1,34 @@
+#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);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Jul 16 22:47:03 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34 \ No newline at end of file