A collection of SKiDL modules for common electronic circuits.
Project description
Circuits as Code
This is a collection of pre-built circuits written as scripts in SKiDL.
Description
SKiDL lets you create electronic circuits by writing Python scripts instead of using a schematic editor.
The circuitsascode
auxiliary Python package gives you a library of ready-made electronic circuits that serves several purposes:
- It provides a set of lower-level modules that you can integrate within your own designs.
- It shows you examples of how to write SKiDL code.
- Free software: MIT license
- Documentation: http://devbisme.github.io/circuitsascode
- User Forum: https://github.com/xesscorp/skidl/discussions
Installation
You can install this circuit library using pip
:
pip install circuitsascode
Usage
Just import the library to use a circuit module:
# Import the function that creates a VGA display interface.
from circuitsascode.displays.vga import vga
# Create color and sync signals to connect to the VGA interface.
red, grn, blu = Bus(5), Bus(4), Bus(3)
hsync, vsync, gnd = Net(), Net(), Net()
# Create a VGA interface circuit customized for the widths
# of the RGB buses.
vga1 = vga(rgb=(len(red), len(grn), len(blu)))
# Connect the signals to the VGA interface circuit.
vga1.red += red
vga1.grn += grn
vga1.blu += blu
vga1.hsync += hsync
vga1.vsync += vsync
vga1.gnd += gnd
Changelog
Version 0.0.1
- Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
circuitsascode-0.0.2.tar.gz
(19.9 kB
view details)
File details
Details for the file circuitsascode-0.0.2.tar.gz
.
File metadata
- Download URL: circuitsascode-0.0.2.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1cb33504f59dd9066dca02cc132a83c453b7d2019c6ce7fc10f0739219cff30 |
|
MD5 | a6a37be3c4790ac9371d372e09431e3d |
|
BLAKE2b-256 | db733c5d69841a6337401c105591b233dd8574e6cf82e61fe673e66e6fb3afb7 |