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
Revision 0:74dc16dd732a, committed 2015-03-19
- Comitter:
- synvox
- Date:
- Thu Mar 19 03:52:54 2015 +0000
- Commit message:
- Test Program for MicroOLED library
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SFE_MicroOLED.lib Thu Mar 19 03:52:54 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/synvox/code/SFE_MicroOLED/#b7fc78d2b795
--- /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);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 19 03:52:54 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file