my first test rpogram

Files at this revision

API Documentation at this revision

Comitter:
behbeh
Date:
Mon Apr 04 05:41:57 2022 +0000
Commit message:
Here are a testprogramm

Changed in this revision

TLC5940.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-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TLC5940.lib	Mon Apr 04 05:41:57 2022 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/behbeh/code/TLC5940/#248cbba21c16
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 04 05:41:57 2022 +0000
@@ -0,0 +1,30 @@
+#include "mbed.h"
+
+
+DigitalOut   myLed1(LED1);
+DigitalOut   myLed2(LED2);
+DigitalOut   myLed3(LED3); //The pushbutton or power on caused a reset
+DigitalOut   myLed4(LED4); //The watchdog timer caused a reset
+Serial pc(USBTX, USBRX);    // tx, rx
+Serial gps(p28,p27);    // tx, rx
+char msg;
+T myFunc()
+{
+    return T();
+}
+
+int main() 
+{
+    T t = myFunc();
+    
+    pc.baud(115200);
+    gps.baud(38400);
+    while(1) {
+        
+        while(gps.getc() != '$');
+        msg = gps.getc();
+        pc.printf("%c",msg);
+        
+       
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Mon Apr 04 05:41:57 2022 +0000
@@ -0,0 +1,1 @@
+https://github.com/armmbed/mbed-os/#cf4f12a123c05fcae83fc56d76442015cb8a39e9