1- spaceship interface
DISCOVER : digital input and output
*FIRST PROGRAM*
it ia a cool control panel with a switch and lights that turn on when you press the switch , A green LED will be on until you press a button when the Arduino get a signal from the button , the green LED will turn off and 2 other lights will start blinkingI’ve used variables , an if()..else , and functions to read the state of an input and control outputs
INGREDIENTS: LED, switch , 220 Ω resistor , 10 kilohm resistor