class GPIO::Line

Defined in:

gpio/line.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(chip : Chip, offset : Int32) #

[View source]

Instance Method Detail

def chip : Chip #

[View source]
def consumer : String | Nil #

[View source]
def direction #

[View source]
def finalize #

[View source]
def free? : Bool #

[View source]
def high? : Bool #

[View source]
def low? : Bool #

[View source]
def name #

[View source]
def offset : Int32 #

[View source]
def on_input_change(consumer : String = GPIO.default_consumer, & : EventType -> ) #

[View source]
def read #

[View source]
def release #

[View source]
def request_input(consumer : String = GPIO.default_consumer) #

[View source]
def request_output(consumer : String = GPIO.default_consumer) #

[View source]
def requested? : Bool #

[View source]
def requested_by_us? : Bool #

[View source]
def set_high #

[View source]
def set_low #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def to_unsafe : Pointer(LibGPIOD::Line) #

[View source]
def write(new_value : Int32) #

[View source]