///////////////////////////////////////////////////////////////////////////////////////////////
| 3900 | |
| 3901 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 3902 | void motionSetup() |
| 3903 | { |
| 3904 | if (strcmp(motionPinConfig, "D0") == 0) |
| 3905 | { |
| 3906 | motionEnabled = true; |
| 3907 | motionPin = D0; |
| 3908 | pinMode(motionPin, INPUT); |
| 3909 | } |
| 3910 | else if (strcmp(motionPinConfig, "D1") == 0) |
| 3911 | { |
| 3912 | motionEnabled = true; |
| 3913 | motionPin = D1; |
| 3914 | pinMode(motionPin, INPUT); |
| 3915 | } |
| 3916 | } |
| 3917 | |
| 3918 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 3919 | void motionHandle() |