source: trunk/Arduino/GSM/readLightSensor/readLightSensor.ino@ 18679

Last change on this file since 18679 was 17968, checked in by ghughes, 10 years ago
Arduino Software Stuff
File size: 494 bytes
Line 
1#define ANA_PIN 0
2#define DIGI_PIN 1
3
4//int val;
5
6void setup()
7{
8
9 Serial.begin(9800);
10 pinMode(DIGI_PIN,INPUT);
11
12
13}
14
15void loop()
16{
17
18 Serial.print(analogRead(ANA_PIN));
19 Serial.print(" ");
20 Serial.println(digitalRead(DIGI_PIN));
21
22/*
23
24 val = digitalRead(DIGI_PIN);
25
26 Serial.println(val);
27
28
29 if(digitalRead(DIGI_PIN))
30 {
31 Serial.print(digitalRead(DIGI_PIN));
32 Serial.println(" HI");
33 } else
34 {
35 Serial.println(digitalRead(DIGI_PIN));
36 }
37*/
38
39 //delay(1000);
40
41}
Note: See TracBrowser for help on using the repository browser.