A program to control an RGB LED via digital outputs

Dependencies:   mbed-renbed

Files at this revision

API Documentation at this revision

Comitter:
RenBuggy
Date:
Fri Apr 15 07:22:32 2016 +0000
Parent:
0:f8795d549647
Commit message:
.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r f8795d549647 -r 333227007cea main.cpp
--- a/main.cpp	Wed Apr 13 14:33:42 2016 +0000
+++ b/main.cpp	Fri Apr 15 07:22:32 2016 +0000
@@ -14,9 +14,9 @@
 
 /* Set up 3 pins as digital out to control the colour
 cathodes of the RGB LED */
-DigitalOut Red(p21);
-DigitalOut Green(p23);
-DigitalOut Blue(p22);
+DigitalOut Red(p18);
+DigitalOut Green(p20);
+DigitalOut Blue(p19);
 
 /* the main function is where a program will begin to execute. */