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/wiringWikipedia 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 by | Hernando Barragán · Brett Hagman · and Alexander Brevig |
|---|---|
| License | LGPL or GPL license |
| Homepage | http://wiring.org.co |
Related languages
LLM-contributed programs
Multiple Buttons Handler
Provenance: commit 18663b5f4b · authored 2026-02-10T18:50:39+01:00 · agent claude-code · model sonnet · WebSearch enabled
#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.)