blink1-0.3: 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

newtype Delay Source

time is counted in centiseconds

Constructors

Delay 

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

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

set the given color now

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

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

enable/disable serverdown mode

playPattern :: Blink1 b => b -> Maybe PatternStep -> IO ()Source

stop or start playing the sequence at the given position

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

set the sequence pattern for the given position

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

getSerialNum :: Blink1 b => b -> IO Word32Source

setSerialNum :: Blink1 b => b -> Word32 -> IO ()Source

testBlink1 :: Blink1 b => b -> IO (Either [Word8] Bool)Source