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: mbed
Revision 0:48b89edbf63e, committed 2019-09-22
- 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