Class: GPIO::MotionDetector

Inherits:
Sensor
  • Object
show all
Defined in:
lib/gpio/sensors/motion_detector.rb

Instance Attribute Summary

Attributes inherited from Sensor

#pin

Instance Method Summary collapse

Methods inherited from Sensor

#changed?, #initialize, #last_reading, #read, #reading

Constructor Details

This class inherits a constructor from GPIO::Sensor

Instance Method Details

#detectObject



3
4
5
# File 'lib/gpio/sensors/motion_detector.rb', line 3

def detect
  read
end