Tests for #238. Assert analogWrite not called with NaN when calling pulse for the first time
Fixes #238. Ensure the current value is at least the number 0 (it may be null or 0)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Adds "analog" accessor property to Sensor

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
IR.Distance class

- Inherits from Sensor
- Requires a device/model id for initialization.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Merge pull request #241 from divanvisagie/master

Rebase of HC-SR04 commit
Adds hc-sr04 example to programs.json

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>