Class: Denko::AnalogIO::Output
- Inherits:
-
Object
- Object
- Denko::AnalogIO::Output
- Defined in:
- lib/denko/analog_io/output.rb
Constant Summary
Constants included from Behaviors::Lifecycle
Behaviors::Lifecycle::CALLBACK_METHODS
Constants included from Behaviors::OutputPin
Behaviors::OutputPin::OUTPUT_MODES
Instance Attribute Summary
Attributes included from Behaviors::Threaded
Attributes included from Behaviors::State
Attributes included from Behaviors::SinglePin
Attributes included from Behaviors::Component
Instance Method Summary collapse
Methods included from Behaviors::Lifecycle
Methods included from Behaviors::Threaded
#enable_interrupts, included, #mruby_thread_check, #stop, #stop_thread, #threaded, #threaded_loop
Methods included from Behaviors::Callbacks
#add_callback, #callbacks, #pre_callback_filter, #remove_callback, #update
Methods included from Behaviors::State
Methods included from Behaviors::SinglePin
#convert_pins, #initialize_pins
Methods included from Behaviors::Component
Instance Method Details
#write(value) ⇒ Object
15 16 17 18 |
# File 'lib/denko/analog_io/output.rb', line 15 def write(value) @board.dac_write(@pin, value) self.state = value end |