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

Safe HaskellNone
LanguageHaskell98

System.Hardware.Blink1.Types

Synopsis

Documentation

data RGB a Source

Constructors

RGB 

Fields

red :: !a
 
green :: !a
 
blue :: !a
 

Instances

Functor RGB 
Read RGB8 
Show RGB8

uses #RRGGBB format

Applicative RGB 
Num a => Num (RGB a) 
(Num a, Ord a, Bounded a) => Monoid (RGB a)

like Sum but clips overflowing values at maxBound

newtype Delay Source

time is measured in centiseconds

Constructors

Delay 

newtype PatternStep Source

positions are counted 0-11 on mk1, 0-31 on mk2

Constructors

PatternStep 

Fields

patternStep :: Word8
 

newtype LED Source

LEDs are 1-based (0 means "all")

Constructors

LED 

Fields

whichLED :: Word8