bread. DOCS

BREAD / GUIDES

Examples

Exact source files alongside diagrams generated by this build of the compiler. Download either format or open the same sample in the Playground.

LED branches

blink.breadOne Uno, one 220Ω resistor and one LED in series.
bread 0.1

title "Arduino LED"

part uno: arduino-uno-r3
part r1: resistor [value=220ohm]
part led: led-5mm-red

uno.D13 -- r1.1
r1.2 -- led.A
led.K -- uno.GND
One Uno, one 220Ω resistor and one LED in series.

Illustration adapted from Arduino UNO R3 CAD by Bread contributors; CC-BY-SA-4.0. Source and modifications are embedded in the SVG. Attribution

three-leds.breadThree separate resistor/LED branches sharing GND1.
bread 0.1

title "Three LEDs · shared ground"

part uno: arduino-uno-r3
part r1: resistor [value=220ohm]
part led1: led-5mm-red
part r2: resistor [value=220ohm]
part led2: led-5mm-red
part r3: resistor [value=220ohm]
part led3: led-5mm-red

// Each signal has its own current-limiting resistor.
uno.D13 -- r1.1
r1.2 -- led1.A
led1.K -- uno.GND

uno.D12 -- r2.1
r2.2 -- led2.A
led2.K -- uno.GND

uno.D11 -- r3.1
r3.2 -- led3.A
led3.K -- uno.GND
Three separate resistor/LED branches sharing GND1.

Illustration adapted from Arduino UNO R3 CAD by Bread contributors; CC-BY-SA-4.0. Source and modifications are embedded in the SVG. Attribution

6-leds.breadSix resistor/LED branches; crossings are not junctions.
bread 0.1
title "6 LEDs · capacity study"
part uno: arduino-uno-r3
part r1: resistor [value=220ohm]
part led1: led-5mm-red
part r2: resistor [value=220ohm]
part led2: led-5mm-red
part r3: resistor [value=220ohm]
part led3: led-5mm-red
part r4: resistor [value=220ohm]
part led4: led-5mm-red
part r5: resistor [value=220ohm]
part led5: led-5mm-red
part r6: resistor [value=220ohm]
part led6: led-5mm-red
uno.D13 -- r1.1
r1.2 -- led1.A
led1.K -- uno.GND
uno.D12 -- r2.1
r2.2 -- led2.A
led2.K -- uno.GND
uno.D11 -- r3.1
r3.2 -- led3.A
led3.K -- uno.GND
uno.D10 -- r4.1
r4.2 -- led4.A
led4.K -- uno.GND
uno.D9 -- r5.1
r5.2 -- led5.A
led5.K -- uno.GND
uno.D8 -- r6.1
r6.2 -- led6.A
led6.K -- uno.GND
Six resistor/LED branches; crossings are not junctions.

Illustration adapted from Arduino UNO R3 CAD by Bread contributors; CC-BY-SA-4.0. Source and modifications are embedded in the SVG. Attribution

Mixed components

A temperature-alarm wiring study only: the static button is open and no temperature threshold, firmware or alarm behavior is simulated.

temperature-alarm.breadDHT22, open button, trimmer and LED wiring only; no alarm simulation.
bread 0.1
title "Temperature alarm · wiring study"
part uno: arduino-uno-r3
part acknowledge: pushbutton-b3f1000-formed
part threshold: potentiometer-3296w [value=10kohm]
part temperature: dht22-bare
part alarm: led-5mm-red
part limit: resistor [value=220ohm]
part pullup: resistor [value=10kohm]
part pulldown: resistor [value=10kohm]
// Intended roles only; this file does not implement alarm firmware.
uno.5V -- threshold.1
uno.5V -- temperature.1
uno.5V -- pullup.1
uno.5V -- acknowledge.A1
uno.GND -- threshold.3
uno.GND -- temperature.4
uno.GND -- alarm.K
uno.GND -- pulldown.2
uno.A0 -- threshold.2
uno.D2 -- temperature.2
temperature.2 -- pullup.2
uno.D4 -- acknowledge.B1
acknowledge.B1 -- pulldown.1
uno.D13 -- limit.1
limit.2 -- alarm.A
// temperature.3 is physically present but deliberately unconnected.
DHT22, open button, trimmer and LED wiring only; no alarm simulation.

Illustration adapted from Arduino UNO R3 CAD by Bread contributors; CC-BY-SA-4.0. Source and modifications are embedded in the SVG. Attribution

Diode and optional capacitor

D12/D13 → 220Ω → diode A/K → LED A/K → GND1. Only one optional 100nF capacitor across 5V/GND1 is supported. Reversed diode/LED polarity is rejected in this family.

diode-led.bread1N4148 A/K and LED A/K in series; diode lead forming is assumed.
bread 0.1
title "Diode + LED · polarity study"

part uno: arduino-uno-r3
part limit: resistor [value=220ohm]
part diode: diode-1n4148
part led: led-5mm-red

// 1N4148 black band identifies K; the resistor limits this series branch.
uno.D13 -- limit.1
limit.2 -- diode.A
diode.K -- led.A
led.K -- uno.GND
1N4148 A/K and LED A/K in series; diode lead forming is assumed.

Illustration adapted from Arduino UNO R3 CAD by Bread contributors; CC-BY-SA-4.0. Source and modifications are embedded in the SVG. Attribution

diode-decoupling.breadThe diode/LED family plus one non-polar 100nF capacitor across 5V/GND1.
bread 0.1
title "Diode + LED with 100nF bypass"

part uno: arduino-uno-r3
part limit: resistor [value=220ohm]
part diode: diode-1n4148
part led: led-5mm-red
part bypass: capacitor-c315c104 [value=100nF]

uno.D13 -- limit.1
limit.2 -- diode.A
diode.K -- led.A
led.K -- uno.GND
// Non-polar 100nF ceramic capacitor; neither terminal is a permanent conductor.
uno.5V -- bypass.1
bypass.2 -- uno.GND
The diode/LED family plus one non-polar 100nF capacitor across 5V/GND1.

Illustration adapted from Arduino UNO R3 CAD by Bread contributors; CC-BY-SA-4.0. Source and modifications are embedded in the SVG. Attribution