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:cafd2d5710f7, committed 2016-10-17
- Comitter:
- Mattinico
- Date:
- Mon Oct 17 18:03:25 2016 +0000
- Commit message:
- fatto
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 Mon Oct 17 18:03:25 2016 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+SPI ser_port(D11, D12, D13);
+char switch_word;
+int main() {
+ ser_port.format(8,0);
+ ser_port.frequency(1000000);
+ while(1){
+ switch_word=0xA1;
+ ser_port.write(switch_word);
+ wait_us(100);
+ }
+
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Oct 17 18:03:25 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3 \ No newline at end of file