wiringpi2 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wiringpi/gpio.rb +8 -0
- metadata +2 -2
data/lib/wiringpi/gpio.rb
CHANGED
@@ -97,6 +97,14 @@ module WiringPi
|
|
97
97
|
return Wiringpi2.pwmSetClock(divisor)
|
98
98
|
end
|
99
99
|
|
100
|
+
def soft_pwm_create(pin, initial_value, pwm_range)
|
101
|
+
return Wiringpi2.softPwmCreate(pin, initial_value, pwm_range)
|
102
|
+
end
|
103
|
+
|
104
|
+
def soft_pwm_write(pin, value)
|
105
|
+
Wiringpi2.softPwmWrite(pin, value)
|
106
|
+
end
|
107
|
+
|
100
108
|
def gpio_clock_set(pin, freq)
|
101
109
|
return Wiringpi2.gpioClockSet(pin, freq)
|
102
110
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wiringpi2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -95,7 +95,7 @@ files:
|
|
95
95
|
- ext/wiringpi/extconf.rb
|
96
96
|
homepage: http://rubygems.org/gems/wiringpi2
|
97
97
|
licenses:
|
98
|
-
- GNU General Public License
|
98
|
+
- GNU Lesser General Public License v3
|
99
99
|
post_install_message:
|
100
100
|
rdoc_options: []
|
101
101
|
require_paths:
|