Source code for the Curilights Controller. See http://www.saccade.com/writing/projects/CuriController/ for details.
Dependencies: FatFileSystem mbed
This is the source code for the Curilights controller. This lets you interactively control a string of Curilights. It provides a simple click-wheel user interface for changing colors, brightness and behavior. It responds to movement and lighting.
Finished Controller
System Block Diagram
Diff: NokiaLCD.h
- Revision:
- 4:cfef06d8bb96
- Parent:
- 0:6da5625a6946
--- a/NokiaLCD.h Tue Jan 17 13:45:17 2012 +0000 +++ b/NokiaLCD.h Mon Feb 11 05:04:18 2013 +0000 @@ -83,7 +83,8 @@ fState = on; fPWM = (!fState) ? 1.0 : 0.0; } - + + bool BacklightOn() const { return fState; } private: bool fState; @@ -129,8 +130,9 @@ void splash(int demo); // Backlight control - void fade_backlight( bool on ) { fBacklight.Fade( on ); } - void switch_backlight( bool on ) { fBacklight.Switch( on ); } + void fade_backlight( bool on ) { fBacklight.Fade( on ); } + void switch_backlight( bool on ){ fBacklight.Switch( on ); } + bool is_backlight_on() const { return fBacklight.BacklightOn(); } // Guts of the sprite/text rendering void draw_sprite( uint32_t fcolor, uint32_t bcolor,