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
Diff: main.cpp
- Revision:
- 0:573d4c6e63ac
- Child:
- 1:a5fcf4e7055a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Oct 06 06:24:20 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+PwmOut r (p23);
+PwmOut g (p24);
+PwmOut b (p25);
+
+int main()
+{
+ r.period(0.001);
+
+ while(1) {
+ r = 0;
+ g = 1;
+ b = 1;
+ wait (0.5);
+ r = 1;
+ g = 0;
+ b = 1;
+ wait (0.5);
+ r = 1;
+ g = 1;
+ b = 0;
+ wait (0.5);
+ }
+}
\ No newline at end of file