{"id":17275410,"url":"https://github.com/devbisme/circuitsascode","last_synced_at":"2025-04-14T09:13:39.489Z","repository":{"id":50565947,"uuid":"398936836","full_name":"devbisme/circuitsascode","owner":"devbisme","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-25T19:46:54.000Z","size":9805,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T09:13:29.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://devbisme.github.io/circuitsascode/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devbisme.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-23T01:12:42.000Z","updated_at":"2024-09-25T06:44:54.000Z","dependencies_parsed_at":"2022-08-26T14:11:49.302Z","dependency_job_id":null,"html_url":"https://github.com/devbisme/circuitsascode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbisme%2Fcircuitsascode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbisme%2Fcircuitsascode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbisme%2Fcircuitsascode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbisme%2Fcircuitsascode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbisme","download_url":"https://codeload.github.com/devbisme/circuitsascode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852182,"owners_count":21171842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T08:56:09.719Z","updated_at":"2025-04-14T09:13:39.465Z","avatar_url":"https://github.com/devbisme.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Circuits as Code banner](logos/banner.png)\n\n[![](https://img.shields.io/pypi/v/circuitsascode.svg)](https://pypi.python.org/pypi/circuitsascode)\n\n# Circuits as Code\n\nThis is a collection of pre-built circuits written as scripts in [SKiDL](http://xesscorp.github.io/skidl).\n\n\n## Description\n\n[SKiDL](http://xesscorp.github.io/skidl) lets you create electronic circuits by writing Python scripts instead of using a schematic editor.\nThe `circuitsascode` auxiliary Python package gives you a library of ready-made electronic circuits that serves several purposes:\n\n1. It provides a set of lower-level modules that you can integrate within your own designs.\n1. It shows you examples of how to write SKiDL code.\n\n* Free software: MIT license\n* Documentation: http://devbisme.github.io/circuitsascode\n* User Forum: https://github.com/xesscorp/skidl/discussions\n\n## Installation\n\nYou can install this circuit library using `pip`:\n\n```bash\npip install circuitsascode\n```\n\n## Usage\n\nJust import the library to use a circuit module:\n\n```py\n# Import the function that creates a VGA display interface.\nfrom circuitsascode.displays.vga import vga\n\n# Create color and sync signals to connect to the VGA interface.\nred, grn, blu = Bus(5), Bus(4), Bus(3)\nhsync, vsync, gnd = Net(), Net(), Net()\n\n# Create a VGA interface circuit customized for the widths\n# of the RGB buses.\nvga1 = vga(rgb=(len(red), len(grn), len(blu)))\n\n# Connect the signals to the VGA interface circuit.\nvga1.red += red\nvga1.grn += grn\nvga1.blu += blu\nvga1.hsync += hsync\nvga1.vsync += vsync\nvga1.gnd += gnd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbisme%2Fcircuitsascode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbisme%2Fcircuitsascode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbisme%2Fcircuitsascode/lists"}