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 2:85664e80d85a, committed 2020-05-12
- 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);
}
}