ISISA-Zacatenco / Mbed 2 deprecated CAN_BUS_PRUEBA_3

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Javierdf
Date:
Sun Sep 22 03:03:14 2019 +0000
Commit message:
CAN_BUS_PRUEBA_3

Changed in this revision

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/main.cpp	Sun Sep 22 03:03:14 2019 +0000
@@ -0,0 +1,23 @@
+
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+CAN can1(PA_11,PA_12);
+Timer timer;
+
+int main() 
+{
+    timer.start();
+    
+    while(1) 
+    {
+        if(timer>=1)
+        {
+            timer.reset();
+            if(can1.write(CANMessage()))
+            printf("transmite \n");
+            else
+            printf("error \n");
+        }
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Sep 22 03:03:14 2019 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a7c7b631e539
\ No newline at end of file