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:3395699bd0df, committed 2015-06-12
- Comitter:
- va009039
- Date:
- Fri Jun 12 09:30:07 2015 +0000
- Child:
- 1:eea17a20509b
- Commit message:
- first commit
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/L152RE_USBDevice.lib Fri Jun 12 09:30:07 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/va009039/code/L152RE_USBDevice/#b6b2296460db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RAM_DISK.lib Fri Jun 12 09:30:07 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/va009039/code/RAM_DISK/#ee281ece9011
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main_favbutton.cpp Fri Jun 12 09:30:07 2015 +0000
@@ -0,0 +1,25 @@
+#if 0
+#include "mbed.h"
+#include "USBKeyboard.h"
+
+DigitalIn button(USER_BUTTON);
+DigitalOut led1(LED1);
+
+extern void L152RE_USBclock_setup();
+
+int main() {
+ L152RE_USBclock_setup();
+
+ USBKeyboard keyboard;
+
+ while(1) {
+ if (!button) {
+ led1 = 1;
+ keyboard.keyCode('f');
+ wait_ms(200);
+ led1 = 0;
+ }
+ }
+}
+
+#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main_mouse.cpp Fri Jun 12 09:30:07 2015 +0000
@@ -0,0 +1,27 @@
+#if 0
+#include "mbed.h"
+#include "USBMouse.h"
+
+extern void L152RE_USBclock_setup();
+
+int main() {
+ L152RE_USBclock_setup();
+
+ USBMouse mouse;
+
+ int16_t x = 0;
+ int16_t y = 0;
+ int32_t radius = 10;
+ int32_t angle = 0;
+
+ while (1) {
+ x = cos((double)angle*3.14/180.0)*radius;
+ y = sin((double)angle*3.14/180.0)*radius;
+
+ mouse.move(x, y);
+ angle += 3;
+ wait(0.001);
+ }
+}
+
+#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main_msd.cpp Fri Jun 12 09:30:07 2015 +0000
@@ -0,0 +1,14 @@
+#if 1
+#include "mbed.h"
+#include "USBMSD_Ram.h"
+
+extern void L152RE_USBclock_setup();
+
+int main() {
+ L152RE_USBclock_setup();
+
+ USBMSD_Ram sd;
+
+ while(1);
+}
+#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main_serial.cpp Fri Jun 12 09:30:07 2015 +0000
@@ -0,0 +1,18 @@
+#if 0
+// https://developer.mbed.org/handbook/USBSerial
+#include "mbed.h"
+#include "USBSerial.h"
+
+extern void L152RE_USBclock_setup();
+
+int main() {
+ L152RE_USBclock_setup();
+
+ USBSerial serial;
+
+ while(1) {
+ serial.printf("I am a virtual serial port\r\n");
+ wait_ms(1000);
+ }
+}
+#endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jun 12 09:30:07 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7 \ No newline at end of file