Dependencies:   C12832

Files at this revision

API Documentation at this revision

Comitter:
namcheol
Date:
Tue May 12 06:27:50 2020 +0000
Parent:
1:fd97c8defb39
Commit message:
lab05-app-shield-rgb-led

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r fd97c8defb39 -r 85664e80d85a main.cpp
--- a/main.cpp	Mon May 11 13:41:32 2020 +0000
+++ b/main.cpp	Tue May 12 06:27:50 2020 +0000
@@ -25,7 +25,7 @@
             led_g = 1.0 - f;
             led_b = 1.0;
             lcd.locate(0, 16);
-            lcd.printf("Red=%.2f, Green=%.2f, Blue=%.2f", f, 0.0, 0.0);
+            lcd.printf("Red=%.2f, Green=%.2f, Blue=%.2f", 0.0, f, 0.0);
             thread_sleep_for(10);
         }
         for(float f = 0.0; f < 1.0; f += 0.05) {
@@ -33,7 +33,7 @@
             led_g = 1.0;
             led_b = 1.0 - f;
             lcd.locate(0, 16);
-            lcd.printf("Red=%.2f, Green=%.2f, Blue=%.2f", f, 0.0, 0.0);
+            lcd.printf("Red=%.2f, Green=%.2f, Blue=%.2f", 0.0, 0.0, f);
             thread_sleep_for(10);
         }
     }