module GPIO

Defined in:

gpio.cr
gpio/version.cr

Constant Summary

HIGH = 1
INPUT = "in"
LOW = 0
OUTPUT = "out"
SYSFS_PATH = "/sys/class/gpio"
VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.clean_up #

[View source]
def self.pin_mode(pin : Int32, mode : String) #

[View source]
def self.read(pin : Int32) #

[View source]
def self.read_pin(pin : Int32) : Int32 #

[View source]
def self.unexport(pin : Int32) #

[View source]
def self.write(pin : Int32, value : Int32) #

[View source]
def self.write_pin(pin : Int32, value : Int32) #

[View source]