Pages: [1]   Go Down
Author Topic: how to control iputs/outputs?  (Read 552 times)
0 Members and 1 Guest are viewing this topic.
uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33371
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

WV
Offline Offline
Full Member
***
Karma: 0
Posts: 160
Arduino, Helps With the ADD
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: