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.
Ken_CAN_test.cpp@0:7a500ebaa7a6, 2022-06-08 (annotated)
- Committer:
- kendunlop
- Date:
- Wed Jun 08 11:40:01 2022 +0000
- Revision:
- 0:7a500ebaa7a6
- Child:
- 1:19d183cf2689
The first commit of the CAN test!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kendunlop | 0:7a500ebaa7a6 | 1 | //This program was created by Ken 8th June 2022 to try out testing the CAN output of a CAN Gateway. |
kendunlop | 0:7a500ebaa7a6 | 2 | #include mbed //Including mbed libraries. This should be all it needs to use the Mbed and CAN. |
kendunlop | 0:7a500ebaa7a6 | 3 | pc.printf("This is the first print message.") |
kendunlop | 0:7a500ebaa7a6 | 4 | |
kendunlop | 0:7a500ebaa7a6 | 5 | //The 'main' function will run as soon as the program starts. |
kendunlop | 0:7a500ebaa7a6 | 6 | int main() |
kendunlop | 0:7a500ebaa7a6 | 7 | { |
kendunlop | 0:7a500ebaa7a6 | 8 | pc.printf("This is the second message.") |
kendunlop | 0:7a500ebaa7a6 | 9 | } |