blink1-0.1: Control library for blink(1) LED from ThingM

Safe HaskellNone

System.Hardware.Blink1

Synopsis

Documentation

data RGB Source

Constructors

RGB 

Fields

red :: !Word8
 
green :: !Word8
 
blue :: !Word8
 

Instances

data Delay Source

time is counted in centiseconds

data Pos Source

positions are counted 0-11

Instances

getVersion :: Blink1 b => b -> IO (Char, Char)Source

set :: Blink1 b => b -> RGB -> IO ()Source

set the given color now

fade :: Blink1 b => b -> Delay -> RGB -> IO ()Source

serverDown :: Blink1 b => b -> Bool -> Delay -> IO ()Source

enable/disable serverdown mode

play :: Blink1 b => b -> Maybe Pos -> IO ()Source

stop or start playing the sequence at the given position

setPattern :: Blink1 b => b -> Pos -> Delay -> RGB -> IO ()Source

set the sequence pattern for the given position

getPattern :: Blink1 b => b -> Pos -> IO (Delay, RGB)Source