Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ULN2003Pi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ULN2003Pi

Package to control a ULN2003 driver for a 28BYJ-48 (or any unipolar) stepper motor on a Raspberry Pi

  • 1.0.4
  • PyPI
  • Socket score

Maintainers
1

ULN2003

Package to control a ULN2003 driver for a 28BYJ-48 (or any unipolar) stepper motor on a Raspberry Pi

Installation

Use the package manager pip to install ULN2003.

pip install ULN2003

Usage

from ULN2003 import ULN2003

pins=[26, 19, 13, 6] #The logical pins of the ULN2003 as connected to the Raspberry Pi with the pins indexed by their BCM numbering
Stepper=ULN2003(pins) #Creates an instance of the ULN2003 driver

Stepper.step(n=100) #Steps forwards by 100 steps

Stepper.step(n=-100) #Steps backwards by 100 steps

License

MIT

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc