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.
Revision 0:87f338a4a341, committed 2017-01-11
- Comitter:
- ShaolinPoutine
- Date:
- Wed Jan 11 22:56:05 2017 +0000
- Commit message:
- fdas
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 Wed Jan 11 22:56:05 2017 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX); // tx, rx
+SPI spi(p5, p6, p7); // mosi, miso, sclk
+DigitalOut cs(p8);
+
+int main() {
+ while(1){//INFINITE !!!!!!!!!!!1
+ cs = 0; // chip select
+ spi.write(pc.getc()); //message from keyboard
+ cs = 1; //chip deselect
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jan 11 22:56:05 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/99b5ccf27215 \ No newline at end of file