2013 Embedded Systems - Grant Ford
Thursday, 13 June 2013
25 A/B - Output between 2 resistors
const int sensorPin = 0;
int lightLevel, high = 0, low = 1023;
void setup()
{
Serial.begin(9600);
}
void loop()
{
lightLevel = analogRead(sensorPin);
Serial.print(lightLevel);
Serial.print("\n");
delay(1000);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment