Go Down

Topic: how to control iputs/outputs? (Read 588 times) previous topic - next topic

jonisonvespaa

Hi

for my first project / intro to ardunio i would like to do the following,

monitor two switches when they are made make an output 1, and if either switch broken make another o/p 2 both monitored by an led.

cant really find an example in the learning section thats fits my project is there any other projects or learning sites that i can learn to achieve this ?

thank you

Grumpy_Mike

What you are asking to do is very trivial. However you seem to just want to find someone who has done this for you.
Look at the button examples, try and learn what each statement does.
You will need to use the if statement with two tests joined with a logic AND that is the && operator.
Read the referance section.

woody_unreal

Mostly Grumpy_Mike is referencing :) You just have to work from there :)
http://arduino.cc/en/Tutorial/Button

Go Up