-- | On the Arduino, pins are grouped into banks of 8.
-- Given a pin, this function determines which index it belongs to in its port
pinPortIndex :: IPin -> Word8
pinPortIndex p = pinNo p `rem` 8
pinPortIndex :: IPin -> Word8
pinPortIndex p = pinNo p `rem` 8
pinPortIndex p = pinNo p `rem` 8