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: SFE_MicroOLED mbed
Diff: main.cpp
- Revision:
- 0:74dc16dd732a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Mar 19 03:52:54 2015 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "SFE_MicroOLED.h"
+
+DigitalOut myled(LED1);
+SPI my_spi(p5, p6, p7);
+MicroOLED my_oled(my_spi, p11, p10, p9);
+
+int main() {
+ my_oled.init(0, 8000000);
+ my_oled.clear(ALL);
+ my_oled.puts("Hello all!");
+ my_oled.circle(16, 31, 16);
+ my_oled.line(0, 9, 63, 47);
+ my_oled.rectFill(33, 32, 8, 8);
+ my_oled.display();
+ while(1) {
+ myled = 1;
+ wait(0.2);
+ myled = 0;
+ wait(0.2);
+ }
+}