huckleberry-0.10.0.2: Haskell IOT on Intel Edison and other Linux computers.

Safe HaskellSafe
LanguageHaskell2010

System.PIO.Linux.GPIO

Synopsis

Documentation

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.

getValue :: PinNumber -> IO Bool Source #

Computation getValue pinnum obtain status of corresponding pin.