Display
Dependencies: Convert SLCD mbed
Diff: main.cpp
- Revision:
- 0:4613ca3d36db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 11 01:44:12 2014 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "convert.h" + +PwmOut r(LED_RED); +PwmOut g(LED_GREEN); + +int main() +{ + r.period(0.001f); + g.period(0.001f); + Convert lcd; + lcd.display(9999); + + while (true) { + + /*for (float i = 0.0f; i < 1.0f ; i += 0.001f) { + float p = 3 * i; + r = 1.0f - ((p < 1.0f) ? 1.0f - p : (p > 2.0f) ? p - 2.0f : 0.0f); + g = 1.0f - ((p < 1.0f) ? p : (p > 2.0f) ? 0.0f : 2.0f - p); + wait (0.0025f); + }*/ + } +}