rotor 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rotor/motor.rb +2 -1
- data/lib/rotor/version.rb +1 -1
- data/rotor.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a09b04547cb01901db87f7bb24b577c7f04dbd22
|
4
|
+
data.tar.gz: 2681e960065e601a800fbb08ec35c8b3a30dad90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4b577946cc3941814a45d79acc8e8c8feb029680e2013c57893263cdc5960e11cda4139ef634be9a13bbbcc99a23d370c0f83826e45def733a2fc32c3e3482b
|
7
|
+
data.tar.gz: 4499b3265c9ed51e1faeec4870b9533c39a1e9b33dfa1eb772fb519bdc18e973935579beba974a415d704d6c21b256deb28e71491e2cb65da516c4610c8b7182
|
data/lib/rotor/motor.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
+
require 'wiringpi'
|
1
2
|
module Rotor
|
2
3
|
class Stepper
|
3
4
|
def initialize(coil_A_1_pin, coil_A_2_pin, coil_B_1_pin, coil_B_2_pin, enable_pin)
|
4
|
-
@io =
|
5
|
+
@io = WiringPi::GPIO.new(WPI_MODE_GPIO)
|
5
6
|
@coil_A_1_pin = coil_A_1_pin
|
6
7
|
@coil_A_2_pin = coil_A_2_pin
|
7
8
|
@coil_B_1_pin = coil_B_1_pin
|
data/lib/rotor/version.rb
CHANGED
data/rotor.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rotor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kobaltz
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: wiringpi
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Ruby Gem for controlling Bipolar and Unipolar Stepper Motors
|