Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wiring (software)

From Wikipedia, the free encyclopedia
(Redirected fromWiring (development platform))
Open-source prototyping platform
Wiring
DevelopersHernando Barragán,Brett Hagman, andAlexander Brevig
Stable release
1.0 (0101) / 28 October 2014; 11 years ago (2014-10-28)[1]
TypeSoftware framework,integrated development environment
LicenseLGPL orGPL license
Websitewiring.org.co
Repository

Wiring is anopen-source electronics prototyping platform composed of aprogramming language, anintegrated development environment (IDE), and asingle-board microcontroller. It was developed starting in 2003 byHernando Barragán.

Barragán started the project at theInteraction Design Institute Ivrea. The project is currently developed at the School of Architecture and Design at theUniversidad de Los Andes in Bogotá, Colombia.

Wiring builds onProcessing, an open project initiated byCasey Reas andBenjamin Fry, both formerly of the Aesthetics and Computation Group at theMIT Media Lab.

Project experts, intermediate developers, and beginners from around the world share ideas, knowledge and their collective experience as a project community. Wiring makes it easy to create software for controlling devices attached to the electronics board to create various interactive devices. The concept of developing is to write a few lines of code, connect a few electronic components to the Wiring hardware and observe, for example, that a motion sensor controls a light when a person approaches it, write a few more lines, add another sensor, and see how this light changes when the illumination level in a room decreases. This process is called sketching with hardware; explore ideas quickly, select the more interesting ones, refine and produce prototypes in an iterative process.

Software

[edit]

The Wiring IDE is across-platform application written inJava which is derived from the IDE made for theProcessing programming language. It is designed to introduce programming and sketching with electronics to artists and designers. It includes a code editor with features such assyntax highlighting,brace matching, and automatic indentation capable of compiling and uploading programs to the board with a single click.

The Wiring IDE includes aC/C++ library called "Wiring", which makes common input/output operations much easier. Wiring programs are written in C++. A minimal program requires only two functions:

  • setup(): a function run once at the start of a program which can be used to define initial environment settings.
  • loop(): a function called repeatedly until the board is powered off or reset.

A typical first program for a developer using a microcontroller is to blink alight-emitting diode (LED) on and off. In the Wiring environment, the user might write a program like this:

intledPin=WLED;// a name for the on-board LEDvoidsetup(){pinMode(ledPin,OUTPUT);// configure the pin for digital output}voidloop(){digitalWrite(ledPin,HIGH);// turn on the LEDdelay(1000);// wait one second (1000 milliseconds)digitalWrite(ledPin,LOW);// turn off the LEDdelay(1000);// wait one second}

When the user clicks the "Upload to Wiring hardware" button in the IDE, a copy of the code is written to a temporary file including a standard header file at the file beginning, and a simplemain function appended.

The Wiring IDE uses theGNU toolchain andAVR Libc to compile programs, and usesavrdude to upload programs to the board.

Open-source hardware and software

[edit]

The Wiring hardware reference designs are distributed under aCreative Commons Attribution Share-Alike 2.5 license and are available on the Wiring Web site. Layout and production files for the Wiring hardware are also available. The source code for the IDE and the hardware library are available and released under theGPLv2.

See also

[edit]

Sources

[edit]
  1. ^"Download Wiring". Wiring.org.co. Retrieved24 April 2019.

External links

[edit]
Concepts
Technologies
Platforms
Applications
Pioneers
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wiring_(software)&oldid=1325177592"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp