{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Copilot.Arduino.Library.Serial.XBee (
Baud(..),
configure,
device,
char,
str,
FlashString(..),
show,
showFormatted,
byte,
byteArray,
noInput,
SerialDevice,
FormatOutput,
OutputString,
FormatableType,
Base(..),
) where
import Copilot.Arduino hiding (show)
import Copilot.Arduino.Library.Serial.Device
import Prelude ()
dev :: SerialDeviceName
dev :: SerialDeviceName
dev = String -> SerialDeviceName
SerialDeviceName String
"XBee"
configure
:: (IsDigitalIOPin rx, IsDigitalIOPin tx)
=> Pin rx
-> Pin tx
-> Baud
-> Sketch ()
configure :: Pin rx -> Pin tx -> Baud -> Sketch ()
configure = SerialDeviceName -> Pin rx -> Pin tx -> Baud -> Sketch ()
forall (rx :: [PinCapabilities]) (tx :: [PinCapabilities]).
(IsDigitalIOPin rx, IsDigitalIOPin tx) =>
SerialDeviceName -> Pin rx -> Pin tx -> Baud -> Sketch ()
configureD SerialDeviceName
dev
device :: SerialDevice
device :: SerialDevice
device = SerialDeviceName -> SerialDevice
SerialDevice SerialDeviceName
dev