delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2011/10/01/23:32:37

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
MIME-Version: 1.0
In-Reply-To: <CAPYb0EEKOn6DK_gge1fqbf7u2sjvQwGWebeHhAU4B66OW0vEvQ@mail.gmail.com>
References: <CAPYb0EG8TxrRXsTD=ZVNrLDb2Sxb0bY4Afsd4kzWZ8Wq3DPNOQ AT mail DOT gmail DOT com>
<CAPYb0EEKOn6DK_gge1fqbf7u2sjvQwGWebeHhAU4B66OW0vEvQ AT mail DOT gmail DOT com>
Date: Sat, 1 Oct 2011 20:25:27 -0700
Message-ID: <CAN0Jx-_g_P7d4avuBqHfyccTYdJvAnq+rYj-3T-918uuvmTPPQ@mail.gmail.com>
Subject: Re: [geda-user] Anyone recognize this package for creating PCB elements?
From: Russell Dill <Russ DOT Dill AT asu DOT edu>
To: geda-user AT delorie DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p923WTfk027336
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

That's me!

http://www.geda.seul.org/mailinglist/geda-dev38/msg00032.html

Feel free to take it as public domain.

On Sat, Oct 1, 2011 at 4:54 PM, Bob Paddock <bob DOT paddock AT gmail DOT com> wrote:
> I came across some old PCB code for making elements, circa 2004, in my archives.
> I'd like to know who wrote it as there is no attribution or licenses
> information.
>
> Package consists of library.c library.h and a 'C' file for each
> produced element, which includes library.h.
>
> library.c starts off:
>
> #include <stdio.h>
> #include <math.h>
> #include <stdlib.h>
> #include "library.h"
>
> #define PIN     0
> #define PAD     1
> #define BORE    2
>
> #define MILS    1
> #define MM      2
>
> #define FACTOR 39.37
>
> static int      l_conversion = MILS;    // Conversion factor, start in mils
> static int      l_pad_width = 60;       // Pad width, in mils
> ...
>
> An example, diode.c, looks like:
>
> #define DIMC 6.8
> #define DIMZ DIMC + DIMY
>
> #define DIMY 2.0
> #define DIMX 3.0
>
> #define WIDTH 7.0
> #define HEIGHT 9.5
>
> void make_element(void)
> {
>        set_mm();
>
>        header("Big Diode", "D1", "diode", 0, 0, RIGHT);
>
>        set_pad(DIMZ - DIMC, DIMX, .2, DIMX + .2);
>        up(DIMC / 2.0);
>        pads_down(DIMC, 2, 1, -1);
>
>        up(DIMC / 2.0 + HEIGHT / 2.0);
>        left(WIDTH / 2.0);
>
>        pen_on();
>        right(WIDTH);
>        down(HEIGHT);
>        left(WIDTH);
>        up(HEIGHT + 1);
>        right(WIDTH);
>        down(1);
>
> }
>
> Anyone recognize this package?
>
> I want to update it, and want to know who to attribute the work to.
>
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019