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