Class: Ev3dev::Motor
Constant Summary collapse
- PATH =
"/sys/class/tacho-motor"
Instance Attribute Summary
Attributes inherited from Device
Instance Method Summary collapse
- #go ⇒ Object
-
#initialize(port) ⇒ Motor
constructor
A new instance of Motor.
- #stop ⇒ Object
Methods inherited from Device
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ev3dev::Device
Instance Method Details
#go ⇒ Object
14 15 16 |
# File 'lib/ev3dev/motor.rb', line 14 def go run 1 end |
#stop ⇒ Object
18 19 20 |
# File 'lib/ev3dev/motor.rb', line 18 def stop run 0 end |