STM32-Zombie-0.1.1: control a STM32F103 microcontroller

Copyright(c) Marc Fontaine 2017
LicenseBSD3
MaintainerMarc.Fontaine@gmx.de
Stabilityexperimental
PortabilityGHC-only
Safe HaskellNone
LanguageHaskell2010

App.Stepper

Description

Stepper motor control. (GPIO bit-banging) This example uses bit-banging to toggle two GPIO pins. It does not show a special STM32 feature. (But I just wanted to test a stepper motor)

Synopsis

Documentation

runStepper :: Direction -> Int -> IO () Source #

Rotatet the stepper motor a number of steps clock wise or conter clock wise.