class GPIO::Line
- GPIO::Line
- Reference
- Object
Defined in:
gpio/line.crConstructors
Instance Method Summary
- #chip : Chip
- #consumer : String | Nil
- #direction
- #finalize
- #free? : Bool
- #high? : Bool
- #low? : Bool
- #name
- #offset : Int32
- #on_input_change(consumer : String = GPIO.default_consumer, & : EventType -> )
- #read
- #release
- #request_input(consumer : String = GPIO.default_consumer)
- #request_output(consumer : String = GPIO.default_consumer)
- #requested? : Bool
- #requested_by_us? : Bool
- #set_high
- #set_low
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #to_unsafe : Pointer(LibGPIOD::Line)
- #write(new_value : Int32)
Constructor Detail
Instance Method Detail
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>