Safe Haskell | None |
---|---|
Language | Haskell98 |
- data RGB a = RGB {}
- type RGB8 = RGB Word8
- newtype Delay = Delay {}
- data PatternStep
- getVersion :: Blink1 b => b -> IO (Char, Char)
- setColor :: Blink1 b => b -> RGB8 -> IO ()
- fadeToColor :: Blink1 b => b -> Delay -> RGB8 -> IO ()
- setServerDown :: Blink1 b => b -> Bool -> Delay -> IO ()
- playPattern :: Blink1 b => b -> Maybe PatternStep -> IO ()
- setPattern :: Blink1 b => b -> PatternStep -> Delay -> RGB8 -> IO ()
- getPattern :: Blink1 b => b -> PatternStep -> IO (Delay, RGB8)
- getSerialNum :: Blink1 b => b -> IO Word32
- setSerialNum :: Blink1 b => b -> Word32 -> IO ()
- testBlink1 :: Blink1 b => b -> IO (Either [Word8] Bool)
Documentation
time is measured in centiseconds
data PatternStep Source
positions are counted 0-11
getVersion :: Blink1 b => b -> IO (Char, Char) Source
fadeToColor :: Blink1 b => b -> Delay -> RGB8 -> 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 -> RGB8 -> IO () Source
set the sequence pattern for the given position
getPattern :: Blink1 b => b -> PatternStep -> IO (Delay, RGB8) Source
getSerialNum :: Blink1 b => b -> IO Word32 Source
setSerialNum :: Blink1 b => b -> Word32 -> IO () Source