Method: BBB::Pins::IO::PWM#initialize
- Defined in:
- lib/BBB/pins/io/pwm.rb
#initialize(position) ⇒ PWM
Returns a new instance of PWM.
9 10 11 12 13 |
# File 'lib/BBB/pins/io/pwm.rb', line 9 def initialize(position) @position = position self.export @handles = get_file_handles end |