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.
Dependencies: mbed-STM32F103C8T6_new
Diff: main.cpp
- Revision:
- 0:217105958c2d
- Child:
- 1:0fe432e5dfc4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Feb 20 15:13:20 2013 +0000
@@ -0,0 +1,37 @@
+#include "mbed.h"
+#include "lcd_driver.h"
+
+DigitalOut myled(LED1);
+
+
+int main() {
+
+ Serial pc(USBTX, USBRX); // tx, rx
+
+ Lcd_Init();
+ pc.printf("Hello mbed\n");
+ LCD_clear();
+ pc.printf("clear \n");
+ Pant(0xf800);
+ Pant(0x07e0);
+ Pant(0x001f);
+ Pant(0xffff);
+ Pant(0x0000);
+
+ while(1) {
+ Pant(0xf800);
+ Pant(0x07e0);
+ Pant(0x001f);
+ Pant(0xffff);
+ Pant(0x0000);
+#if 0
+ myled = 1;
+ wait(0.5);
+ myled = 0;
+ wait(0.5);
+#endif
+ }
+}
+
+
+