Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serial communications are now MUCH faster! - The original method induced a 1-second delay after every command; now, after a command is sent, it awaits a response of either “Done” or “Error” so that it can return instantly. - Now that sending commands involves checking for a “Done” or “Error” response, all configuration methods now return boolean to indicate whether the change was successful. - Reading presence status via serial is now almost as fast as `digitalRead()` New methods: - `configBegin()` and `configEnd()` allow you to make multiple configuration changes with only a single call to `stop()`, `saveConfig()` and `start()` - `setTriggerLatency()` allows you to configure delays on confirmation (amount of time that continuous presence activity must be detected before asserting a presence state) and disappearance (amount of time that must not contain any presence activity before deasserting a presence state). - `begin()` doesn’t currently do anything, but reserved for future use. Removed methods related to auto-start since there’s not a straightforward way to determine whether the sensor is running. Factory default is for the sensor to automatically start on power-up, so it’s safer to operate around that assumption. I may restore these methods at a later date, especially if I decide on what `begin()` will do.
- Loading branch information