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:1b9b99ca9d6c, committed 2019-11-25
- Comitter:
- fpucher
- Date:
- Mon Nov 25 11:07:47 2019 +0000
- Commit message:
- Simple Bus Program
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 Nov 25 11:07:47 2019 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+BusOut leds(LED1,LED2,LED3,LED4);
+BusIn joy(p15,p12,p13,p16);
+DigitalIn fire(p14);
+
+int main() {
+ while(1) {
+ if (fire) {
+ leds=0xf;
+ } else {
+ leds=joy;
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 25 11:07:47 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file