MCPcopy Create free account
hub / github.com/HASwitchPlate/HASPone / motionSetup

Function motionSetup

Arduino_Sketch/HASwitchPlate/HASwitchPlate.cpp:3902–3916  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

3900
3901////////////////////////////////////////////////////////////////////////////////////////////////////
3902void 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////////////////////////////////////////////////////////////////////////////////////////////////////
3919void motionHandle()

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected