huckleberry-0.10.0.0: Haskell IOT on Intel Edison and other Linux computers.
System.PIO.Linux.GPIO
Synopsis
type PinNumber = Int Source #
GPIO pin numbers are values of type Int
setValue :: PinNumber -> Bool -> IO () Source #
Computation setValue pinnum True makes corresponding pin high. Computation setValue pinnum False makes corresponding pin low.
setValue
pinnum
True
False
getValue :: PinNumber -> IO Bool Source #
Computation getValue pinnum obtain status of corresponding pin.
getValue