// RelayDemonstration1.ino
//
//  6 February 2022, Version 1, by Koepel, Public Domain
//                   relay logic versus sketch logic
// 11 February 2022, Version 2, by Koepel, Public Domain
//                   simpler, no sketch anymore, two circuits.
// 11 February 2022, Version 3, by Koepel, Public Domain
//                   even more simpler, split off the other circuit
//
// The sketch is empty!
// There relays are the only active components.
//
// The "Set" button activates the relay and that also takes over the "Set" button.
// The "Reset" button activates a second relay to cut the current.
// An other version with three relays is:
//   https://wokwi.com/arduino/projects/323288150472393300
//

void setup() {}
void loop() {}
ATTINY8520PU
tiny:PB5
tiny:PB3
tiny:PB4
tiny:GND
tiny:PB0
tiny:PB1
tiny:PB2
tiny:VCC
sw4:NO2
sw4:NC2
sw4:P2
sw4:COIL2
sw4:NO1
sw4:NC1
sw4:P1
sw4:COIL1
sw5:NO2
sw5:NC2
sw5:P2
sw5:COIL2
sw5:NO1
sw5:NC1
sw5:P1
sw5:COIL1
led3:A
led3:C
led4:A
led4:C
r2:1
r2:2
r3:1
r3:2
btn3:1.l
btn3:2.l
btn3:1.r
btn3:2.r
btn4:1.l
btn4:2.l
btn4:1.r
btn4:2.r