RGB Leds

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mirzamesic
Date:
Mon Dec 09 18:26:40 2019 +0000
Commit message:
ver1

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 Dec 09 18:26:40 2019 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+PwmOut red(p23);
+PwmOut green(p24); 
+PwmOut blue(p25); 
+
+
+ 
+ 
+int main() 
+{
+   
+    red.period_ms(500); 
+    red.pulsewidth_ms(100);
+    blue.period_ms(500); 
+    blue.pulsewidth_ms(300);
+    green=1;
+    while(1) 
+    {
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 09 18:26:40 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file