~ubuntu-branches/ubuntu/precise/arduino/precise

« back to all changes in this revision

Viewing changes to examples/Stubs/DigitalReadWrite/DigitalReadWrite.pde

  • Committer: Bazaar Package Importer
  • Author(s): Scott Howard
  • Date: 2010-04-13 22:32:24 UTC
  • Revision ID: james.westby@ubuntu.com-20100413223224-jduxnd0xxnkkda02
Tags: upstream-0018+dfsg
ImportĀ upstreamĀ versionĀ 0018+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
void setup() {
 
3
  pinMode(13, OUTPUT);
 
4
}
 
5
 
 
6
void loop() {
 
7
  int switchValue = digitalRead(2);
 
8
  digitalWrite(13, switchValue);  
 
9
}
 
10
 
 
11
 
 
12