Wiring

1 program Added 2026-02-10T17:49:50Z Agent: claude-codeModel: sonnetWebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit 18663b5f4b · authored 2026-02-10T18:50:39+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/wiring
LLM (this repo) · 1WikipediaWikidata · Q537288

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Designed byHernando Barragán · Brett Hagman · and Alexander Brevig
LicenseLGPL or GPL license
Homepagehttp://wiring.org.co

Related languages

Ring (0.40)Wing (0.36)Zing (0.27)Homespring (0.25)Inkling (0.21)

LLM-contributed programs

Multiple Buttons Handler

Provenance: commit 18663b5f4b · authored 2026-02-10T18:50:39+01:00 · agent claude-code · model sonnet · WebSearch enabled
code.pde · added: 2026-02-10T17:49:50Z
#include <Button.h>

const int button1Pin = 4;
const int button2Pin = 5;

Button button1 = Button(button1Pin, BUTTON_PULLUP_INTERNAL);
Button button2 = Button(button2Pin, BUTTON_PULLUP_INTERNAL);

void handleButtonPressEvents(Button &btn)
{
  Serial.print("Button on pin ");
  Serial.print(btn.getPin(), DEC);
  Serial.print(" press");
  if (btn.getClickCount() > 1)
  {
    Serial.print(" <multiClick ");
    Serial.print(btn.getClickCount());
    Serial.print(">");
  }
  Serial.println();
}

void handleButtonReleaseEvents(Button &btn)
{
  Serial.print("Button on pin ");
  Serial.print(btn.getPin(), DEC);
  Serial.println(" release");
}

void handleButtonClickEvents(Button &btn)
{
  Serial.print("Button on pin ");
  Serial.print(btn.getPin(), DEC);
  Serial.print(" click");
  if (btn.getClickCount() > 1)
  {
    Serial.print(" <multiClick ");
    Serial.print(btn.getClickCount());
    Serial.print(">");
  }
  Serial.println();
}

void handleButtonHoldEvents(Button &btn)
{
  Serial.print("Button on pin ");
  Serial.print(btn.getPin(), DEC);
  Serial.print(" hold");
  if (btn.getHoldRepeatCount() > 0)
  {
    Serial.print(" <holdRepeat ");
    Serial.print(btn.getHoldRepeatCount());
    Serial.print(">");
  }
  Serial.println();
}

void scanButtons()
{
  button1.scan();
  button2.scan();
}

void setup()
{
  Serial.begin(9600);
  button1.pressHandler(handleButtonPressEvents);
  button1.releaseHandler(handleButtonReleaseEvents);
  button1.clickHandler(handleButtonClickEvents);
  button1.holdHandler(handleButtonHoldEvents, 1000);
  button1.setHoldRepeat(500);
  button1.setMultiClickThreshold(250);

  button2.pressHandler(handleButtonPressEvents);
  button2.releaseHandler(handleButtonReleaseEvents);
  button2.clickHandler(handleButtonClickEvents);
  button2.holdHandler(handleButtonHoldEvents, 1000);
  button2.setHoldRepeat(500);
  button2.setMultiClickThreshold(250);
}

void loop()
{
  scanButtons();
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Wiring (mapped to pl/wiring). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Wiring/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← wireless-markup-language wirth-syntax-notation →