GithubHelp home page GithubHelp logo

generics's Introduction

Generics

Overview

Standard libaries for use in your projects. These include:

  • Resistors
  • Capacitors
  • Inductors
  • Diodes
  • Transistors
  • Interfaces

Installation

Run in the terminal:

```ato install generics``

Add to your ato project:

  • Resistors import Resistor from "generics/resistor.ato
  • Capacitors import Capacitor from "generics/capacitor.ato
  • Inductors import Inductor from "generics/inductor.ato
  • Interfaces import Interface from "generics/interface.ato
  • etc...

Features

Resistors

The standard libary includes several thousand resistor options. In your ato project, simply specify any requirements and the best resistor will be automatically selected. Example:

import Resistor from "generics/resistor.ato" myResistor = new Resistor myResistor.value = 1000 myResistor.footprint = "R0402" myResistor.tolerance = 10

The solver will find a resistor that has a resistance between 900 and 1100 ohms accounting for tolerance, and a footprint of R0402.

Capacitors

Similar to resistors, just specify the value and footprint and the solver will find the best capacitor for your application.

Inductors

Currently not supported for automatic selection, but you can install any inductor you like using '''ato install''' and then use it in your project.

We strongly reccomend using subclassing for new components, something like this:

import Inductor from "generics/inductor.ato" component MyInductor from Inductor: value = 1000 footprint = "L0402"

Then you can use it in your project like this:

import MyInductor from "myInductor.ato" myInductor = new MyInductor myInductor.value = 1000 myInductor.footprint = "L0402"

Interfaces

Interfaces standardize the way you connect to modules. By implementing an interface from the standard libary, you can be sure that your module will be compatible with any other module that implements the same interface. This makes it easy to share modules between projects and be sure that they will work together.

Contributing

We welcome contributions and suggestions to improve this module. Please submit your contributions as pull requests on our GitHub repository.

License

This package documentation is provided under the MIT License.

Contact

For further inquiries or support, please contact us at [email protected].

generics's People

Contributors

napowderly avatar timot05 avatar mawildoer avatar sebastianbergt avatar nickkrstevski avatar

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.