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
diff -r 000000000000 -r 9f226da4bfca TLC5940.lib
--- /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
diff -r 000000000000 -r 9f226da4bfca main.cpp
--- /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);
+        
+       
+    }
+}
diff -r 000000000000 -r 9f226da4bfca mbed-os.lib
--- /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