MBot 0.1.0.2 → 0.1.1.0
raw patch · 2 files changed
+3/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ MBot: setMotor :: Int -> Int -> Int -> Command
Files
- MBot.cabal +1/−1
- src/MBot.hs +2/−1
MBot.cabal view
@@ -10,7 +10,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.1.0.2+version: 0.1.1.0 -- A short (one-line) description of the package. synopsis: Haskell interface for controlling the mBot educational robot
src/MBot.hs view
@@ -63,6 +63,7 @@ goRight, stop, setRGB,+ setMotor, Line(LEFTB, RIGHTB, BOTHB, BOTHW), Command() ) where @@ -320,7 +321,7 @@ setRGB index red green blue = MBotCommand idx RUN RGBLED rgbp [2,index,red,green,blue] -setMotor port speed sp = MBotCommand idx RUN MOTOR port [speed,sp]+setMotor port speed sp = MBotCommand idx RUN MOTOR port [speed,sp] getLineFollower = MBotCommand lineIdx GET LINEFOLLOWER linp [] getUltrasonicSensor = MBotCommand ultraIdx GET ULTRASONIC_SENSOR sonp []