Simple smart nightlight. Changes from all off to blue, green and then red as light level falls.

Dependencies:   mbed

Fork of aReadConditional by Charles Tritt

History

Reading of DigitalOut states made explicit. Comments cleaned up. default tip

2017-10-08, by CSTritt [Sun, 08 Oct 2017 03:39:44 +0000] rev 6

Reading of DigitalOut states made explicit. Comments cleaned up.


Removed magic numbers. Replaced them with calibration equation based on max. and min. analog readings.

2017-10-08, by CSTritt [Sun, 08 Oct 2017 02:44:47 +0000] rev 5

Removed magic numbers. Replaced them with calibration equation based on max. and min. analog readings.


More minor edits.

2017-09-22, by CSTritt [Fri, 22 Sep 2017 19:51:46 +0000] rev 4

More minor edits.


Initial version. To be used in BE-1005, Fall 2017.

2017-09-22, by CSTritt [Fri, 22 Sep 2017 19:36:53 +0000] rev 3

Initial version. To be used in BE-1005, Fall 2017.


Added reading and using DigitalOut state.

2017-03-27, by CSTritt [Mon, 27 Mar 2017 14:20:32 +0000] rev 2

Added reading and using DigitalOut state.


Cleaned up comments.

2017-03-27, by CSTritt [Mon, 27 Mar 2017 13:29:43 +0000] rev 1

Cleaned up comments.


Version 1.

2017-03-27, by CSTritt [Mon, 27 Mar 2017 12:48:54 +0000] rev 0

Version 1.