Download the PHP package neuronlight/pinout without Composer
On this page you can find all versions of the php package neuronlight/pinout. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neuronlight/pinout
More information about neuronlight/pinout
Files in neuronlight/pinout
Package pinout
Short Description Electronic device pinout renderer
License GPL-3.0-or-later
Homepage https://github.com/neuronlight/pinout
Informations about the package pinout
Pinout
Pinout facilitates the rendering of integrated circuit pinout diagrams from a JSON file.
Installation
Test the installation by browsing to
You should see a pinout diagram for the PIC12F675 microcontroller.
Simple usage
Include the javascript in your web page:
To have a pinout diagram rendered from a JSON use an element with a attribute:
where (in this case) is the filename (sans extension - although it can be included) of the JSON file defining the device.
You'll also need to include jQuery; either locally or via one of the many CDNs available
Defining a device
A JSON file for a device takes the form:
Package types currently supported are DIP, PDIP, CERDIP, SDIP & SPDIP.
(Devices with less than 24 pins that are defined as DIP sized packages are rendered as SDIP)
Changing the appearance of the diagram
The diagram is rendered using paramters in the default configuration file:
Some, or all of the paramters can be overridden in one of two ways.
-
An alternative configuration file (named ) can be created and placed in the same directory as the device JSON file (parameters defined this way override those defined in the default configuration file)
- Other attributes can be added to the HTML element (any parameters define in this way override those defined in any configuration file)
Element attributes supported are:
-
width of diagram in pixels
-
height of digram in pixels
-
scale of diagram (number of pixels per mm)
-
diagram color (in hex M, RGB or RRGGBB format)
- background color
Direct use
The device image can be called directly. The example image is called, for example, with the form:
The file parameter can be omitted when calling directly; the device JSON being sent as a POST parameter called 'dev' instead. When called in such a way the appearance can only be changed from that defined in the default configuration file by way of parameters (i.e. no custom config file will be loaded).
Experimenter
There's a basic tool included for experimenting with the pinout functions that can be found at (html5 browser required).
Share and enjoy.
All versions of pinout with dependencies
ext-gd Version >=2.0