Test Inteface

Dependencies:   Adafruit_GFX mbed

Files at this revision

API Documentation at this revision

Comitter:
chrish
Date:
Thu Apr 27 07:41:38 2017 +0000
Commit message:
bfdb

Changed in this revision

Adafruit_GFX.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Adafruit_GFX.lib	Thu Apr 27 07:41:38 2017 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/chrish/code/Adafruit_GFX/#c5470ab609ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 27 07:41:38 2017 +0000
@@ -0,0 +1,44 @@
+#include "mbed.h"
+#include "Adafruit_SSD1306.h"
+DigitalOut myled(LED1);
+
+/*==> Interface Display <==*/
+I2C I2CDisp(PA_10, PA_9);
+Adafruit_SSD1306_I2c Disp(I2CDisp,PB_0);
+
+/*==> Interface Virtual COM PORT STProgrammer <==*/
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+
+/* ==> Interface BNO_055  Shuttle Board <== */
+Serial BNO(PB_6, PB_7);
+DigitalOut BNO_RST(PB_1);
+DigitalOut BNO_InterfaceSEL(PA_0);
+
+
+
+int main() {
+    /*Display Initialisierung*/
+    Disp.clearDisplay();
+    Disp.setRotation(2);
+    Disp.printf("Hallo Davi \n");
+    Disp.printf("Siehe Dokumente ... \n");
+    Disp.display();
+    /* HELLO World PC*/
+    pc.printf("Hallo Davi !\n");
+    /* Initialisierung BNO055*/
+    BNO_RST = 1; // Reset Altive Low
+    BNO_InterfaceSEL = 1; // Select UART Interface 
+    BNO.baud(115200);
+    /*Format Default 8N1 = 8data, no Parity bit, one Stop bit*/
+    
+    
+    
+    while(1) {
+        myled = 1; // LED is ON
+        wait(0.2); // 200 ms
+        myled = 0; // LED is OFF
+        pc.printf("Hallo Davi !\n");
+        wait(1.0); // 1 sec
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 27 07:41:38 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/97feb9bacc10
\ No newline at end of file