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: ZMotionDetector.h
- Revision:
- 0:6da5625a6946
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ZMotionDetector.h Thu Dec 29 01:59:53 2011 +0000 @@ -0,0 +1,32 @@ +// ZMotionDetector.h +// Support for the Zilog ePIR Motion Detection Zdots SBC + +#ifndef _ZMOTIONDETECTOR_ +#define _ZMOTIONDETECTOR_ + +#ifndef MBED_H +#include "mbed.h" +#endif + +class ZMotionDetector +{ +public: + ZMotionDetector( PinName ztx, PinName zrx ); + + virtual ~ZMotionDetector() {}; + + bool IsMotionDetected(); + + void SetAsyncMode( bool on ); + + void SetExtendedRange( bool on ); + + void ResetDetector(); + + void Motion(); + +protected: + Serial fMDPort; +}; + +#endif