Coder Social home page Coder Social logo

pinout-overview's Introduction

Pinout Generator

A very work in progress pinout diagram generator using Python and drawsvg

Usage

Config Files

Configuration can be split across multiple config files to allow for sharing of common properties

"_style" fields are standard SVG properties like fill, font_family, etc.

Define types

types:
    pin:
        width: 80
        description: PIN NAME
        box_style:
            stroke: black
            fill: grey
        text_style:
            font_family: Roboto Mono
            fill: white
    ...

Define pin functions

pins:
    PIN1:
        - type: pin
            name: PD7
            alt: False
        - type: spacer
    ...

Map Pins to physical output on IC

mapping: [PIN1, PIN2, ...]

Styling

See the default files for further reference

pin: !include ../defaults/pin_qfn.yaml
label: !include ../defaults/label_qfn.yaml
package: !include ../defaults/package_qfn.yaml

Chip options

footprint: QFN-20 #Footprint-PinNumber
name: "IC NAME" 
subtitle: "SUBTITLE"
package_text:
  text: "ON PACKAGE TEXT"
  sub_text: "ON PACKAGE SUBTEXT"
canvas_width: 2000
canvas_height: 1000

Generating the Images

To generate a single Image

 py pinout.py [yaml file] [output file]

To generate a whole directory, first characters of yaml files should match directory name. SVGs will be saved in the directory

 py generate_dir.py [yaml dir]

TODO

  • Error checking
  • Documentation
  • Improve SVG generation
  • Add different styling options
  • Added YAML functionality like Homeassistant and ESPHome has
  • Improve modularity to allow for more complex footprints
  • Clean up a lot of bad programming and improve readability
  • Use config files and cli

pinout-overview's People

Contributors

tengo10 avatar cnlohr avatar prosper00 avatar dreua avatar

Stargazers

 avatar Romain Reignier avatar Erasmus Cedernaes avatar Jacob avatar Richard Arthurs avatar Rick avatar Cole Tobin avatar  avatar Elias Trommer avatar Manuel Imboden avatar  avatar Katia Esposito avatar sordfish avatar  avatar  avatar Coburn avatar  avatar Ettore Beltrame avatar  avatar Robert Lipe avatar Robert Garito avatar kingsley zhang avatar Philippe Sauter avatar Andrew Peal avatar Yusuf Coşgun avatar Ahmed Osama avatar Omar Mekkawy avatar Ferenc Géczi avatar Jean THOMAS avatar

Watchers

 avatar Kostas Georgiou avatar

pinout-overview's Issues

ch32v003

  • Some Pins still appear to have the wrong functions assigned,
  • Improve Timer naming scheme
  • remove unnecessary white space

Thoughts to a license

Have you given any thought to, or have any interest in assigning a license to your project?

Regards,
c.

classes

Hi Tengo,

I wanted to make a minor change to your generator and it morphed into a full refactoring into classes. Algorithmicaly, there is very little change, but structurally, virtually no part was left untouched. And there is a long way to go.

If you are interested, feel free to take what you like using whatever means that best meet your needs. Ill wait a bit before i move to the SOP package for any feedback, if any, from your team.

Thanks for a nice generator. It builds a truly pretty page.

CH32V003 Add NRST to PD7

Just as a note, it's a system pin, and while it can be disabled, it does exist and should be marked off.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.